public void OnLoad(ISsmsExtendedFunctionalityProvider provider)
 {
     m_Provider = (ISsmsFunctionalityProvider6)provider;
     m_Provider.AddToolbarItem(new ExecuteExpressProfiler());
     var command = new ExecuteExpressProfiler();
     m_Provider.AddToolsMenuItem(command);
 }
        public void OnLoad(ISsmsExtendedFunctionalityProvider provider)
        {
            m_Provider = (ISsmsFunctionalityProvider6)provider;
            m_Provider.AddToolbarItem(new ExecuteExpressProfiler());
            var command = new ExecuteExpressProfiler();

            m_Provider.AddToolsMenuItem(command);
        }
Exemplo n.º 3
0
 public RunCommand(ISsmsFunctionalityProvider6 provider, Logging logger)
 {
     this.logger  = logger;
     ssmsProvider = provider;
     if (ssmsProvider == null)
     {
         var error = "Could not initialize provider for RunCommand.";
         logger.Log(error);
         throw new ArgumentException(error);
     }
 }
Exemplo n.º 4
0
 public RunCommand(ISsmsFunctionalityProvider6 provider, Logging logger)
 {
     this.logger = logger;
     ssmsProvider = provider;
     if (ssmsProvider == null)
     {
         var error = "Could not initialize provider for RunCommand.";
         logger.Log(error);
         throw new ArgumentException(error);
     }
 }
Exemplo n.º 5
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.");
        }
Exemplo n.º 6
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, config);
            runCommand.SetSelectedDBNode(currentNode);

            ssmsProvider.AddToolbarItem(runCommand);
            logger.LogVerbose("Extension.OnLoad complete.");
        }
Exemplo n.º 7
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); };
        }
Exemplo n.º 8
0
        /// <summary>
        /// This is the entry point for your add in.
        /// </summary>
        /// <param name="provider">This gives you access to the SSMS integrations provided by SIPFramework. If there's something missing let me know!</param>
        public void OnLoad(ISsmsExtendedFunctionalityProvider provider)
        {
            m_Provider = (ISsmsFunctionalityProvider6)provider;    //Caste to the latest version of the interface

            bool isDebugEnable = true;

            if (isDebugEnable)
            {
                AddDebugMenuBottom();
            }

            //AddMenuBarMenu();
            AddCustomQueryWindowButton();
            AddObjectExplorerContextMenu();
            AddObjectExplorerListener();
            //AddToolbarButton();

            //m_Provider.GetQueryWindowManager().AddQueryWindowContextMenuItem("rename serhat", new SharedCommand(m_Provider, LogAndDisplayMessage));
        }
Exemplo n.º 9
0
 private void AddToolsMenuItems(ISsmsFunctionalityProvider6 ssmsFunctionalityProvider)
 {
     ssmsFunctionalityProvider.AddToolsMenuItem(new OpenScriptsBrowser(ShowBrowseScriptsPage));
 }
Exemplo n.º 10
0
 private void AddObjectExplorerMenuItems(ISsmsFunctionalityProvider6 ssmsProvider)
 {
     ssmsProvider.AddTopLevelMenuItem(new DatabaseLevelMenuItem(ShowBrowseScriptsPage));
 }
Exemplo n.º 11
0
 public BrowseScriptsPage(ISsmsFunctionalityProvider6 provider, RemoteBridge bridge)
 {
     m_Bridge      = bridge;
     m_SsmsTabPage = provider.CreateTabPage(typeof(BrowseScriptsPageControl), TheProduct.Name, TheProduct.MainPaneId);
 }
Exemplo n.º 12
0
 public CustomQueryWindowControl(ISsmsFunctionalityProvider6 provider)
 {
     m_Provider = provider;
     InitializeComponent();
 }
 public ObjectExplorerMenuItem(string label, ISsmsFunctionalityProvider6 provider, Action<string> logMessageCallback)
 {
     m_Label = label;
     m_Provider = provider;
     m_LogMessage = logMessageCallback;
 }
Exemplo n.º 14
0
 public MCompareFile2(ISsmsFunctionalityProvider6 mPlug, ManaSQLCommand mCmd)
 {
     plug = mPlug;
     cmd = mCmd;
 }
Exemplo n.º 15
0
 private void AddObjectExplorerMenuItems(ISsmsFunctionalityProvider6 ssmsProvider)
 {
     ssmsProvider.AddTopLevelMenuItem(new DatabaseLevelMenuItem(ShowBrowseScriptsPage));
 }
 public OpenCustomQueryWindowCommand(ISsmsFunctionalityProvider6 provider)
 {
     m_Provider = provider;
 }
 public CustomQueryWindowControl(ISsmsFunctionalityProvider6 provider)
 {
     m_Provider = provider;
     InitializeComponent();
 }
Exemplo n.º 18
0
 public QuickCompareSubmenuItem(ISsmsFunctionalityProvider6 mPlug, ManaSQLCommand mCmd, QuickCompareMenu mq)
 {
     q = mq;
     plug = mPlug;
     cmd = mCmd;
 }
 public OpenCustomQueryWindowCommand(ISsmsFunctionalityProvider6 provider, Action <string> logMessageCallback)
 {
     m_Provider   = provider;
     m_LogMessage = logMessageCallback;
 }
Exemplo n.º 20
0
 private void AddToolsMenuItems(ISsmsFunctionalityProvider6 ssmsFunctionalityProvider)
 {
     ssmsFunctionalityProvider.AddToolsMenuItem(new OpenScriptsBrowser(ShowBrowseScriptsPage));
 }
        /// <summary>
        /// This is the entry point for your add in.
        /// </summary>
        /// <param name="provider">This gives you access to the SSMS integrations provided by SIPFramework. If there's something missing let me know!</param>
        public void OnLoad(ISsmsExtendedFunctionalityProvider provider)
        {
            m_Provider = (ISsmsFunctionalityProvider6)provider;    //Caste to the latest version of the interface

            m_MessageLog = new MessageLog();
            var messagesView = new MessagesView { DataContext = m_MessageLog };
            m_MessageLogWindow = m_Provider.ToolWindow.Create(messagesView, "Sample Add-in", new Guid(c_MessageWindowGuid));
            m_MessageLogWindow.Window.Dock();
            DisplayMessages();

            AddMenuBarMenu();
            AddObjectExplorerContextMenu();
            AddToolbarButton();
        }
Exemplo n.º 22
0
 public MExtract(ISsmsFunctionalityProvider6 mPlug, ManaSQLCommand mCmd)
 {
     plug = mPlug;
     cmd = mCmd;
 }
 public ObjectExplorerMenuItem(string label, ISsmsFunctionalityProvider6 provider, Action <string> logMessageCallback)
 {
     m_Label      = label;
     m_Provider   = provider;
     m_LogMessage = logMessageCallback;
 }
Exemplo n.º 24
0
 public SVNCommitAll(ISsmsFunctionalityProvider6 mPlug, ManaSQLCommand mCmd, List<SimpleOeMenuItemBase> mMenu)
 {
     plug = mPlug;
     cmd = mCmd;
     menu = mMenu;
 }
Exemplo n.º 25
0
 public ManaSQLCommand(ISsmsFunctionalityProvider6 thePlug)
 {
     mainPlug = thePlug;
 }