/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand guidMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_InsertGuid, ExecuteGuid, QueryExecuteGuid); MenuCommand prevGuidMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_InsertPrevGuid, ExecutePrevGuid, QueryExecutePrevGuid); parent = env; // ------------------------------------------------------- mc.AddCommand(guidMenu, "InsertGuid", "Insert New &Guid", 9017, "Global::Ctrl+R, G", null, false); mc.AddCommand(prevGuidMenu, "InsertPrevGuid", "Insert &Previous Guid", 0, "Global::Ctrl+R, Q", null, false); mc.Customizator.AddInsertionItem(guidMenu, false, 1, null); mc.Customizator.AddInsertionItem(prevGuidMenu, false, 2, null); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand nameMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute, BeforeExecute); parent = env; // ------------------------------------------------------- mc.AddCommand(nameMenu, "InsertClassName", "Insert Class &Name...", 0, null, null, false); mc.Customizator.AddInsertionItem(nameMenu, true, -1, null); // ------------------------------------------------------- string[] pre = new string[] { "Byte", "String", "Object", "Thread", "Int", "Custom", "Type", "Editor", "Environment", "Code", "File", "Socket", "Handle", "Image", "Picture", "Icon", "Bitmap", "Color", "Smart", "Stupid", "Secure", "Custom", "Client", "Server", "Remote", "Random", "MultiByte", "Shared", "Box", "Static", "Dynamic" }; string[] body = new string[] { "Provider", "Executor", "Factory", "Locator", "Helper", "Util", "Record", "Randomizer", "Modeler", "Listener", "Serializer", "Generator", "Consumer" }; string[] post = new string[] { "Info", "Ext", "Extension", "Param", "Event", "Args", "Contract", "Annotation", "Attribute", "Action", "Array", "Mode", "Comparer", "Metadata", "Data", }; // and create random-names-generator: nameGenerator = new NameProvider(pre, 0.8, body, 1, post, 0.5); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand menu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute, BeforeQueryStatus); parent = env; // ------------------------------------------------------- mc.AddCommand(menu, "InitConstructorRefactor", "Init &Constructor...", 9003, "Global::Ctrl+R, C", null, false); mc.Customizator.AddRefactoring(menu, false, -1, null); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand menu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute); parent = env; // ------------------------------------------------------- mc.AddCommand(menu, "NativeImagePreview", "NativeImage &Preview", BitmapIndex, "Global::Ctrl+W, N", null, true); mc.Customizator.AddAuxToolWindow("View", menu, true, 11, "Object Browser"); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand menu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute); parent = env; // ------------------------------------------------------- mc.AddCommand(menu, "DebugOutputView", "&Debug Output", BitmapIndex, "Global::Ctrl+W, V", null, true); mc.Customizator.AddToolWindow("View", menu, false, 8, "Output"); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand menu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute); parent = env; // ------------------------------------------------------- mc.AddCommand(menu, "EnvironmentVariablesView", "Variabl&es View", BitmapIndex, "Global::Ctrl+W, I", null, true); mc.Customizator.AddToolWindow("View", menu, false, 3, "Class View"); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand menu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute); parent = env; // ------------------------------------------------------- mc.AddCommand(menu, "RegistryExplorerView", "&Registry Explorer", BitmapIndex, "Global::Ctrl+W, M", null, true); mc.Customizator.AddToolWindow("View", menu, false, 4, "Object Browser"); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand databaseMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute, BeforeExecute); parent = env; // ------------------------------------------------------- mc.AddCommand(databaseMenu, "InsertConnectionString", "Insert &Connection String...", 9016, "Global::Ctrl+R, S", null, false); mc.Customizator.AddInsertionItem(databaseMenu, true, -1, null); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand fileMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_InsertFilePath, ExecuteFilePath, QueryExecute); MenuCommand contentMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_InsertContentPath, ExecuteFileContent, QueryExecute); MenuCommand exportContentMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_InsertExportContentPath, ExecuteFileExportContent, QueryExportExecute); MenuCommand folderMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_InsertFolderPath, ExecuteFolderPath, QueryExecute); parent = env; // ------------------------------------------------------- mc.AddCommand(fileMenu, "InsertFilePath", "Insert &File Path...", 9019, null, null, false); mc.AddCommand(contentMenu, "InsertFileContent", "Insert File Content As &Binary...", 9020, null, null, false); mc.AddCommand(exportContentMenu, "InsertFileExportContent", "Export File C&ontent...", 0, null, null, false); mc.AddCommand(folderMenu, "InsertFolderPath", "Insert Folder &Location...", 9018, null, null, false); mc.Customizator.AddInsertionItem(folderMenu, false, -1, null); mc.Customizator.AddInsertionItem(fileMenu, false, -1, null); mc.Customizator.AddInsertionItem(contentMenu, false, -1, null); mc.Customizator.AddInsertionItem(exportContentMenu, false, -1, null); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand menu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute); parent = env; // ------------------------------------------------------- mc.AddCommand(menu, "CommandView", "&Command Browser", BitmapIndex, "Global::Ctrl+W, B", null, true); mc.Customizator.AddAuxToolWindow("View", menu, false, 9, "Properties Window"); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand menu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute, BeforeQueryStatus); parent = env; // ------------------------------------------------------- mc.AddCommand(menu, "ExpandEnumRefactor", "Ex&pand Switch From Enum...", 9021, "Global::Ctrl+R, J", null, false); mc.Customizator.AddRefactoring(menu, false, -1, null); }
/// <summary> /// Register new project by unique ID, name and with specified parameters that will be used during invoke time. /// </summary> private MenuCommand AddProject(int id, string caption, int itemIndex, int iconIndex, string paramName, object paramValue, bool beginGroup) { MenuCommand menuCommand = ObjectFactory.CreateCommand(GuidList.guidCmdSet, id, ExecuteAddReference, AnyProjectBeforeQueryStatus); menuCommand.Properties.Add(paramName, paramValue); mc.AddCommand(menuCommand, GetUniqueName(caption), caption, iconIndex, null, (paramValue is DummyProject ? ((DummyProject)paramValue).Name : GetToolTip(caption)), false); mc.Customizator.AddReferenceProject(menuCommand, beginGroup, itemIndex); return(menuCommand); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand menu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute); parent = env; // ------------------------------------------------------- mc.AddCommand(menu, "OpenWindowsExplorer", "Open &Folder...", 9008, null, null, false); mc.Customizator.AddSolutionExplorerItem(menu, true, false, 1, "Exclude From Project", "Set as StartUp Project", "Add", "Copy Full Path"); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand tipsMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_AbouxBoxPopup, ExecuteTips); MenuCommand checkMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_AbouxBoxCheckUpdate, ExecuteCheckUpdate); MenuCommand bugMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_AbouxBoxSubmitBug, ExecuteBug); MenuCommand featureMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_AbouxBoxRequestFeature, ExecuteFeature); MenuCommand visitMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_AbouxBoxVisit, ExecuteVisit); MenuCommand aboutMenu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, PackageCmdIDList.toolAction_AbouxBoxInfo, ExecuteAboutBox); parent = env; // ------------------------------------------------------- mc.AddCommand(tipsMenu, "TipsAndTricks", "&Tips && tricks...", 9013, null, null, false); mc.AddCommand(checkMenu, "CheckForUpdate", "&Check for update...", 0, null, null, false); mc.AddCommand(bugMenu, "SubmitBug", "Submit &bug...", 0, null, null, false); mc.AddCommand(featureMenu, "SubmitFeature", "Submit &feature request...", 0, null, null, false); mc.AddCommand(visitMenu, "VisitHomepage", "Visit &homepage", 9014, null, null, false); mc.AddCommand(aboutMenu, "AboutBox", "&About...", 0, null, null, false); mc.Customizator.AddAboutItem(tipsMenu, false, 1, null); mc.Customizator.AddAboutItem(checkMenu, false, 2, null); mc.Customizator.AddAboutItem(bugMenu, true, 3, null); mc.Customizator.AddAboutItem(featureMenu, false, 4, null); mc.Customizator.AddAboutItem(visitMenu, false, 5, null); mc.Customizator.AddAboutItem(aboutMenu, true, 6, null); CheckVersion(); }
/// <summary> /// Performs initialization of this action and /// also registers all the UI elements required by the action, e.g.: menus / menu groups / toolbars. /// </summary> public void Initialize(IPackageEnvironment env, IMenuCreator mc) { MenuCommand menu = ObjectFactory.CreateCommand(GuidList.guidCmdSet, ID, Execute, BeforeQueryStatus); parent = env; // load configuration: config = ObjectFactory.LoadConfiguration(ConfigurationName); // ------------------------------------------------------- mc.AddCommand(menu, "MultiRenameRefactor", "Multi Method &Rename...", 9004, "Global::Ctrl+R, L", null, false); mc.Customizator.AddRefactoring(menu, false, -1, null); }