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); }
/// <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(); }
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."); }
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."); }
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); }; }
/// <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)); }
public void OnLoad(ISsmsExtendedFunctionalityProvider provider) { AssemblyLoadHandler.Initialize(); LogConfigurator.InitializeForHost(); var ssmsProvider = (ISsmsFunctionalityProvider6) provider; var ssmsQueryWindowManager = ssmsProvider.GetQueryWindowManager(); m_CheckForUpdatesService = GetBestCheckForUpdateService(); ObjectFactory.Bind<ISsmsFunctionalityProvider6>().ToConstant(ssmsProvider); ObjectFactory.Bind<ISsmsQueryWindowManager>().ToConstant(ssmsQueryWindowManager); ObjectFactory.Bind<Dispatcher>().ToConstant(Dispatcher.CurrentDispatcher).InSingletonScope(); AddObjectExplorerMenuItems(ssmsProvider); AddQueryWindowContextItems(ssmsQueryWindowManager); AddToolbarItems(ssmsProvider); AddToolsMenuItems(ssmsProvider); m_CheckForUpdatesService.OnStartup(); s_Logger.Debug("Loaded"); }
public void OnLoad(ISsmsExtendedFunctionalityProvider provider) { AssemblyLoadHandler.Initialize(); LogConfigurator.InitializeForHost(); var ssmsProvider = (ISsmsFunctionalityProvider6)provider; var ssmsQueryWindowManager = ssmsProvider.GetQueryWindowManager(); m_CheckForUpdatesService = GetBestCheckForUpdateService(); ObjectFactory.Bind <ISsmsFunctionalityProvider6>().ToConstant(ssmsProvider); ObjectFactory.Bind <ISsmsQueryWindowManager>().ToConstant(ssmsQueryWindowManager); ObjectFactory.Bind <Dispatcher>().ToConstant(Dispatcher.CurrentDispatcher).InSingletonScope(); AddObjectExplorerMenuItems(ssmsProvider); AddQueryWindowContextItems(ssmsQueryWindowManager); AddToolbarItems(ssmsProvider); AddToolsMenuItems(ssmsProvider); m_CheckForUpdatesService.OnStartup(); s_Logger.Debug("Loaded"); }
public void OnLoad(ISsmsExtendedFunctionalityProvider provider) { _provider4 = (ISsmsFunctionalityProvider4)provider; _Dte2 = _provider4.SsmsDte2 as DTE2; ISsmsExtendedFunctionalityProvider a; if (_provider4 == null) { throw new ArgumentException(); } var debugWriter = new DebugTextWriter(); Console.SetOut(debugWriter); try { LoadCommandPlugins(); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } }
public void OnLoad(ISsmsExtendedFunctionalityProvider provider) { m_SimpleSsmsAddin.OnLoad(provider); }
public void OnLoad(ISsmsExtendedFunctionalityProvider provider) { m_SimpleSsmsAddin.OnLoad(provider); }