예제 #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);
 }