public void OnLoad(ISsmsExtendedFunctionalityProvider provider)
 {
     m_Provider = (ISsmsFunctionalityProvider6)provider;
     m_Provider.AddToolbarItem(new ExecuteExpressProfiler());
     var command = new ExecuteExpressProfiler();
     m_Provider.AddToolsMenuItem(command);
 }
Exemple #2
0
        public void OnLoad(ISsmsExtendedFunctionalityProvider provider)
        {
            logger.Log("Extension.OnLoad");
            ssmsProvider = provider as ISsmsFunctionalityProvider6;
            if (ssmsProvider == null)
            {
                string error = "Could not initialize SIP provider for TSqlFlex extension.";
                logger.Log(error);
                throw new ArgumentException(error);
            }
            runCommand = new RunCommand(ssmsProvider, logger);
            runCommand.SetSelectedDBNode(currentNode);

            ssmsProvider.AddToolbarItem(runCommand);
            logger.LogVerbose("Extension.OnLoad complete.");
        }
Exemple #3
0
        public void OnLoad(ISsmsExtendedFunctionalityProvider provider)
        {
            //MSettings.ReadSettings();
            ManaSQLConfig.Initialise();

            thePlug = (ISsmsFunctionalityProvider6)provider;
            manaSQLCommand = new ManaSQLCommand(thePlug);
            menuCommands = new List<SimpleOeMenuItemBase>();

            thePlug.AddToolbarItem(manaSQLCommand);

            // adding quick compare menu
            var items = new SimpleOeMenuItemBase[ManaSQLConfig.qcm.Count];
            for (int i = 0; i < ManaSQLConfig.qcm.Count; i++)
            {
                items[i] = new QuickCompareSubmenuItem(thePlug, manaSQLCommand, ManaSQLConfig.qcm[i]);
            }
            thePlug.AddTopLevelMenuItem(new QuickCompareSubmenu(items));

            // adding UI to MSSQL
            menuCommands.Add(new MExtract(thePlug, manaSQLCommand));
            menuCommands.Add(new MExtractEnlist(thePlug, manaSQLCommand));
            menuCommands.Add(new MExtractAll(thePlug, manaSQLCommand));
            thePlug.AddTopLevelMenuItem(menuCommands[0]);
            thePlug.AddTopLevelMenuItem(menuCommands[1]);
            thePlug.AddTopLevelMenuItem(menuCommands[2]);

            thePlug.AddTopLevelMenuItem(new MExtractAllProgrammability(thePlug, manaSQLCommand, menuCommands));
            thePlug.AddTopLevelMenuItem(new MSVN.SVNCommitAll(thePlug, manaSQLCommand, menuCommands));
            thePlug.AddTopLevelMenuItem(new MSVN.SVNUpdateAll());

            thePlug.AddTopLevelMenuItem(new MCompareFile1(thePlug, manaSQLCommand));
            thePlug.AddTopLevelMenuItem(new MCompareFile2(thePlug, manaSQLCommand));

            // adding in SVN menu strip
            thePlug.AddTopLevelMenuItem(new MSVN.SVNRepoStatus());
            thePlug.AddTopLevelMenuItem(new MSVN.SVNCommit(thePlug, manaSQLCommand, menuCommands));
            thePlug.AddTopLevelMenuItem(new MSVN.SVNUpdate());
            thePlug.AddTopLevelMenuItem(new MSVN.SVNShowLog());
            thePlug.AddTopLevelMenuItem(new MSVN.SVNDiff());
            thePlug.AddTopLevelMenuItem(new MSVN.SVNMerge());
            thePlug.AddTopLevelMenuItem(new MSVN.SVNBlame());

            thePlug.ObjectExplorerWatcher.ConnectionsChanged += (args) => { OnConnectionsChanged(args); };
            thePlug.ObjectExplorerWatcher.SelectionChanged += (args) => { OnSelectionChanged(args); };
        }
 private void AddToolbarItems(ISsmsFunctionalityProvider6 ssmsFunctionalityProvider)
 {
     ssmsFunctionalityProvider.AddToolbarItem(new OpenScriptsBrowser(ShowBrowseScriptsPage));
 }