private static void Execute(IDataContext context, ISolution solution, LifetimeDefinition definition, Lifetime lifetime)
        {
            var locks = Shell.Instance.GetComponent<IShellLocks>();
            var actionManager = Shell.Instance.Components.ActionManager();
            var shortcutManager = Shell.Instance.GetComponent<IShortcutManager>();
            var globalSettingsTable = Shell.Instance.GetComponent<SettingsStore>();
            var fontsManager = Shell.Instance.GetComponent<FontsManager>();
            var tooltipMananger = Shell.Instance.Components.Tooltips();
            var dataContexts = Shell.Instance.GetComponent<DataContexts>();
            var threading = Shell.Instance.GetComponent<IThreading>();
            var mainWindow = Shell.Instance.GetComponent<UIApplication>().MainWindow;
            var popupWindowManager = Shell.Instance.GetComponent<PopupWindowManager>();
            var windowsMessageHookManager = Shell.Instance.GetComponent<WindowsMessageHookManager>();
            var mainWindowPopupWindowContext = Shell.Instance.GetComponent<MainWindowPopupWindowContext>();

            var controller = new FindUsagesOfSymbolController(lifetime, solution, LibrariesFlag.SolutionOnly, locks,
                                                              dataContexts, threading);

            new GotoByNameMenu(definition, controller.Model, locks, globalSettingsTable, fontsManager, tooltipMananger,
                               mainWindow, popupWindowManager, windowsMessageHookManager, mainWindowPopupWindowContext,
                               context.GetData(GotoByNameDataConstants.CurrentSearchText),
                               actionManager, shortcutManager);
        }
Ejemplo n.º 2
0
        private static void Execute(IDataContext context, ISolution solution, LifetimeDefinition definition, Lifetime lifetime)
        {
            var locks                        = Shell.Instance.GetComponent <IShellLocks>();
            var actionManager                = Shell.Instance.Components.ActionManager();
            var shortcutManager              = Shell.Instance.GetComponent <IShortcutManager>();
            var globalSettingsTable          = Shell.Instance.GetComponent <SettingsStore>();
            var fontsManager                 = Shell.Instance.GetComponent <FontsManager>();
            var tooltipMananger              = Shell.Instance.Components.Tooltips();
            var dataContexts                 = Shell.Instance.GetComponent <DataContexts>();
            var threading                    = Shell.Instance.GetComponent <IThreading>();
            var mainWindow                   = Shell.Instance.GetComponent <UIApplication>().MainWindow;
            var popupWindowManager           = Shell.Instance.GetComponent <PopupWindowManager>();
            var windowsMessageHookManager    = Shell.Instance.GetComponent <WindowsMessageHookManager>();
            var mainWindowPopupWindowContext = Shell.Instance.GetComponent <MainWindowPopupWindowContext>();

            var controller = new FindUsagesOfSymbolController(lifetime, solution, LibrariesFlag.SolutionOnly, locks,
                                                              dataContexts, threading);

            new GotoByNameMenu(definition, controller.Model, locks, globalSettingsTable, fontsManager, tooltipMananger,
                               mainWindow, popupWindowManager, windowsMessageHookManager, mainWindowPopupWindowContext,
                               context.GetData(GotoByNameDataConstants.CurrentSearchText),
                               actionManager, shortcutManager);
        }