Example #1
0
 public DebugController(IDialControllerHost host)
 {
     _dte    = host.DTE;
     _events = _dte.Events.DebuggerEvents;
     _events.OnEnterBreakMode  += delegate { host.RequestActivation(_dte.MainWindow, Moniker); };
     _events.OnEnterDesignMode += delegate { host.ReleaseActivation(_dte.MainWindow); };
 }
Example #2
0
        public async Task <IDialController> TryCreateControllerAsync(IDialControllerHost host, IAsyncServiceProvider provider, CancellationToken cancellationToken)
        {
            string iconFilePath = VsHelpers.GetFileInVsix(@"Providers\Errors\icon.png");
            await host.AddMenuItemAsync(Moniker, iconFilePath);

            return(new ErrorsController(host));
        }
        public IDialController TryCreateController(IDialControllerHost host)
        {
            string iconFilePath = VsHelpers.GetFileInVsix("Providers\\Editor\\icon.png");

            host.AddMenuItem(Moniker, iconFilePath);

            return(new EditorController(CompletionBroker));
        }
Example #4
0
        public IDialController TryCreateController(IDialControllerHost host)
        {
            string iconFilePath = VsHelpers.GetFileInVsix("Providers\\Bookmarks\\icon.png");

            host.AddMenuItem(Moniker, iconFilePath);

            return(new BookmarksController(host));
        }
Example #5
0
        public IDialController TryCreateController(IDialControllerHost host)
        {
            string iconFilePath = VsHelpers.GetFileInVsix("Providers\\Customizable\\icon.png");

            host.AddMenuItem(Moniker, iconFilePath);

            return(new CustomizableController());
        }
 public ErrorsController(IDialControllerHost host)
 {
     _host      = host;
     _dte       = host.DTE;
     _errorList = _dte.ToolWindows.ErrorList as IErrorList;
     _events    = _dte.Events.WindowEvents;
     _events.WindowActivated += WindowActivated;
 }
 public BookmarksController(IDialControllerHost host, IVsTextManager textManager)
     : base(host, textManager)
 {
     _host     = host;
     _commands = host.DTE.Commands;
     _events   = host.DTE.Events.WindowEvents;
     _events.WindowActivated += WindowActivated;
 }
Example #8
0
        public IDialController TryCreateController(IDialControllerHost host)
        {
            string folder       = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            string iconFilePath = Path.Combine(folder, "Providers\\Errors\\icon.png");

            host.AddMenuItem(Moniker, iconFilePath);

            return(new ErrorsController());
        }
        public async Task <IDialController> TryCreateControllerAsync(IDialControllerHost host, IAsyncServiceProvider provider, CancellationToken cancellationToken)
        {
            string iconFilePath = VsHelpers.GetFileInVsix(@"Providers\Zoom\icon.png");
            await host.AddMenuItemAsync(Moniker, iconFilePath);

            IVsTextManager textManager = await provider.GetServiceAsync <SVsTextManager, IVsTextManager>(cancellationToken);

            return(new ZoomController(host, textManager));
        }
 public IDialController TryCreateController(IDialControllerHost host)
 {
     return(new NumbersController());
 }
 public EditorController(IDialControllerHost host, IVsTextManager textManager, ICompletionBroker completionBroker)
     : base(host, textManager)
 {
     _dte    = host.DTE;
     _broker = completionBroker;
 }
 public DebugController(IDialControllerHost host)
 {
     _events = VsHelpers.DTE.Events.DebuggerEvents;
     _events.OnEnterBreakMode  += delegate { host.RequestActivation(Moniker); };
     _events.OnEnterDesignMode += delegate { host.ReleaseActivation(); };
 }
 public FindController(IDialControllerHost host, IVsTextManager textManager)
     : base(host, textManager)
 {
     _commands = host.DTE.Commands;
 }
Example #14
0
 internal BaseTextController(IDialControllerHost host, IVsTextManager textManager)
 {
     this.host        = host;
     this.textManager = textManager;
 }
 public ErrorsController(IDialControllerHost host)
 {
     _host   = host;
     _events = VsHelpers.DTE.Events.WindowEvents;
     _events.WindowActivated += WindowActivated;
 }
 public IDialController TryCreateController(IDialControllerHost host)
 {
     return(new ColorController());
 }
Example #17
0
        public IDialController TryCreateController(IDialControllerHost host)
        {
            host.AddMenuItem(PredefinedMonikers.Scroll, Windows.UI.Input.RadialControllerMenuKnownIcon.Scroll);

            return(new ScrollController());
        }
Example #18
0
        public IDialController TryCreateController(IDialControllerHost host)
        {
            host.AddMenuItem(PredefinedMonikers.Navigate, Windows.UI.Input.RadialControllerMenuKnownIcon.NextPreviousTrack);

            return(new NavigateController());
        }
Example #19
0
 public CustomizableController(IDialControllerHost host)
 {
     _commands = host.DTE.Commands;
 }
Example #20
0
 public IDialController TryCreateController(IDialControllerHost host)
 {
     return(new SolutionExplorerController());
 }