示例#1
0
        private NamespaceCycle NamespaceCycle(IJumpToSource jumper)
        {
            var namespaceCycle = new NamespaceCycle(metrics, NamespacesInCycle());

            namespaceCycle.Jump += type => TypeJump.To(metrics, type, jumper);
            return(namespaceCycle);
        }
示例#2
0
        private NamespaceCycleDisplayVM CreateViewModel(IJumpToSource jumper)
        {
            var viewModel = new NamespaceCycleDisplayVM("Namespace cycle");

            viewModel.Display(NamespaceCycle(jumper));
            return(viewModel);
        }
示例#3
0
        public override void OnDoubleClick(IJumpToSource jumper)
        {
            var cycleDisplay = new NamespaceCycleDisplay();

            cycleDisplay.DataContext = CreateViewModel(jumper);
            cycleDisplay.Show();
        }
示例#4
0
 public static FrameworkElement CreateHotspots(ViewHub hub, IJumpToSource jumpToSource)
 {
     var hotspotsView = new View.Hotspots();
     var hotspotsViewModel = new ViewModels.Hotspots.Hotspots { Dispatchable = hotspotsView };
     hotspotsViewModel.RegisterHub(hub);
     hotspotsViewModel.SourceLocating = jumpToSource;
     hotspotsView.DataContext = hotspotsViewModel;
     return hotspotsView;
 }
示例#5
0
		public static FrameworkElement CreateCockpit(ViewHub hub, IJumpToSource jumpToSource)
		{
			var cockpitView = new View.Cockpit();
			var cockpitViewModel = new ViewModels.Cockpit.Cockpit { Dispatchable = cockpitView };
			cockpitViewModel.RegisterHub(hub);
			cockpitViewModel.SourceLocating = jumpToSource;
			cockpitView.DataContext = cockpitViewModel;
			return cockpitView;
		}
示例#6
0
 public override void OnDoubleClick(IJumpToSource jumper)
 {
     if (Report.SourceLocation.IsAvailable)
     {
         jumper.JumpToFileLocation(
             Report.SourceLocation.Filename,
             Report.SourceLocation.Line, true);
     }
 }
示例#7
0
        public static FrameworkElement CreateCockpit(ViewHub hub, IJumpToSource jumpToSource)
        {
            var cockpitView      = new View.Cockpit();
            var cockpitViewModel = new ViewModels.Cockpit.Cockpit {
                Dispatchable = cockpitView
            };

            cockpitViewModel.RegisterHub(hub);
            cockpitViewModel.SourceLocating = jumpToSource;
            cockpitView.DataContext         = cockpitViewModel;
            return(cockpitView);
        }
示例#8
0
        public static FrameworkElement CreateHotspots(ViewHub hub, IJumpToSource jumpToSource)
        {
            var hotspotsView      = new View.Hotspots();
            var hotspotsViewModel = new ViewModels.Hotspots.Hotspots {
                Dispatchable = hotspotsView
            };

            hotspotsViewModel.RegisterHub(hub);
            hotspotsViewModel.SourceLocating = jumpToSource;
            hotspotsView.DataContext         = hotspotsViewModel;
            return(hotspotsView);
        }
示例#9
0
 public virtual void OnDoubleClick(IJumpToSource jumper)
 {
 }
示例#10
0
 private void JumpToMethod(IJumpToSource jumper, MethodMetricsReport firstMethod)
 {
     jumper.JumpToFileLocation(
         firstMethod.SourceLocation.Filename,
         firstMethod.SourceLocation.Line, true);
 }
示例#11
0
 public TypeJump(MetricsReport metrics, TypeMetricsReport type, IJumpToSource jumper)
 {
     this.metrics = metrics;
     this.type    = type;
     this.jumper  = jumper;
 }
示例#12
0
 public static void To(MetricsReport metrics, TypeMetricsReport type, IJumpToSource jumper)
 {
     new TypeJump(metrics, type, jumper).Jump();
 }
示例#13
0
 public override void OnDoubleClick(IJumpToSource jumper)
 {
     TypeJump.To(metrics, Report, jumper);
 }