/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(JoinLinesPlugIn)); DevExpress.CodeRush.Core.Parameter parameter1 = new DevExpress.CodeRush.Core.Parameter(new DevExpress.CodeRush.Core.StringParameterType()); this.actionJoinLines = new DevExpress.CodeRush.Core.Action(this.components); ((System.ComponentModel.ISupportInitialize)(this.actionJoinLines)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // actionJoinLines // this.actionJoinLines.ActionName = "Join Lines"; this.actionJoinLines.ButtonText = "Join Lines"; this.actionJoinLines.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.None; this.actionJoinLines.Description = "Joins lines in the editor."; this.actionJoinLines.Image = ((System.Drawing.Bitmap)(resources.GetObject("actionJoinLines.Image"))); this.actionJoinLines.ImageBackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(254)), ((System.Byte)(0))); parameter1.DefaultValue = ""; parameter1.Description = "String that will be inserted between lines when joining. Helpful if a space, com" + "ma, pipe, or other delimiter needs to be inserted between joined lines."; parameter1.Name = "Delimiter"; parameter1.Optional = true; this.actionJoinLines.Parameters.Add(parameter1); this.actionJoinLines.RegisterInVS = true; this.actionJoinLines.Execute += new DevExpress.CodeRush.Core.CommandExecuteEventHandler(this.actionJoinLines_Execute); this.actionJoinLines.QueryStatus += new DevExpress.CodeRush.Core.QueryStatusEventHandler(this.actionJoinLines_QueryStatus); ((System.ComponentModel.ISupportInitialize)(this.actionJoinLines)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); DevExpress.CodeRush.Core.Parameter parameter1 = new DevExpress.CodeRush.Core.Parameter(new DevExpress.CodeRush.Core.StringParameterType()); this.actSendKeys = new DevExpress.CodeRush.Core.Action(this.components); ((System.ComponentModel.ISupportInitialize)(this.actSendKeys)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // actSendKeys // this.actSendKeys.ActionName = "SendKeys"; this.actSendKeys.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.None; this.actSendKeys.Description = "Sends the specified keys to the IDE."; this.actSendKeys.ImageBackColor = System.Drawing.Color.Empty; parameter1.DefaultValue = ""; parameter1.Description = "The keys to send. You can include special keys from System.Windows.Forms.Keys enu" + "m in the sequence if you embed them inside square brackets (e.g., [Up])."; parameter1.Name = "keys"; parameter1.Optional = false; this.actSendKeys.Parameters.Add(parameter1); this.actSendKeys.ToolbarItem.ButtonIsPressed = false; this.actSendKeys.ToolbarItem.Caption = null; this.actSendKeys.ToolbarItem.Image = null; this.actSendKeys.ToolbarItem.ToolbarName = null; // // ShortcutsPlugIn // this.OptionsChanged += new DevExpress.CodeRush.Core.OptionsChangedEventHandler(this.ShortcutsPlugIn_OptionsChanged); ((System.ComponentModel.ISupportInitialize)(this.actSendKeys)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
private void GetMarkerActionProperties(DevExpress.CodeRush.Core.Action action, out NavDestination destination, out bool collect) { if (action == MarkerFirstAction || action == MarkerCollectFirstAction) { destination = NavDestination.First; } else if (action == MarkerPrevAction || action == MarkerCollectPrevAction) { destination = NavDestination.Prev; } else if (action == MarkerNextAction || action == MarkerCollectNextAction) { destination = NavDestination.Next; } else if (action == MarkerLastAction || action == MarkerCollectLastAction) { destination = NavDestination.Last; } else if (action == MarkerTopAction) { destination = NavDestination.Top; } else { destination = NavDestination.None; } collect = action == MarkerCollectFirstAction || action == MarkerCollectPrevAction || action == MarkerCollectNextAction || action == MarkerCollectLastAction; }
public void createReviseSelection() { DevExpress.CodeRush.Core.Action ReviseSelection = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(ReviseSelection)).BeginInit(); ReviseSelection.ActionName = "ReviseSelection"; ReviseSelection.RegisterInCR = true; ReviseSelection.Execute += ReviseSelection_Execute; ((System.ComponentModel.ISupportInitialize)(ReviseSelection)).EndInit(); }
public void registerCleanupFileAndNamespaces() { DevExpress.CodeRush.Core.Action CleanupFileAndNamespaces = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(CleanupFileAndNamespaces)).BeginInit(); CleanupFileAndNamespaces.ActionName = "CleanupFileAndNamespaces"; CleanupFileAndNamespaces.RegisterInCR = true; CleanupFileAndNamespaces.Execute += CleanupFileAndNamespaces_Execute; ((System.ComponentModel.ISupportInitialize)(CleanupFileAndNamespaces)).EndInit(); }
public void RegisterMultiSelectEdit() { DevExpress.CodeRush.Core.Action MultiSelectEdit = new DevExpress.CodeRush.Core.Action(this.components); ((System.ComponentModel.ISupportInitialize)MultiSelectEdit).BeginInit(); MultiSelectEdit.ActionName = "MultiSelectEdit"; MultiSelectEdit.ButtonText = "MultiSelectEdit"; // Used if button is placed on a menu. MultiSelectEdit.RegisterInCR = true; MultiSelectEdit.Execute += MultiSelectEdit_Execute; ((System.ComponentModel.ISupportInitialize)MultiSelectEdit).EndInit(); }
public void registerExecuteTempTemplate() { DevExpress.CodeRush.Core.Action ExecuteTempTemplate = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(ExecuteTempTemplate)).BeginInit(); ExecuteTempTemplate.ActionName = "ExecuteTempTemplate"; ExecuteTempTemplate.ButtonText = "ExecuteTempTemplate"; // Used if button is placed on a menu. ExecuteTempTemplate.RegisterInCR = true; ExecuteTempTemplate.Execute += ExecuteTempTemplate_Execute; ((System.ComponentModel.ISupportInitialize)(ExecuteTempTemplate)).EndInit(); }
public void registerCollapseXML() { DevExpress.CodeRush.Core.Action CollapseXML = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(CollapseXML)).BeginInit(); CollapseXML.ActionName = "CollapseXML"; CollapseXML.ButtonText = "Collapse XML"; // Used if button is placed on a menu. CollapseXML.RegisterInCR = true; CollapseXML.Execute += CollapseXML_Execute; ((System.ComponentModel.ISupportInitialize)(CollapseXML)).EndInit(); }
public void registerRemoveQuotesFromString() { DevExpress.CodeRush.Core.Action RemoveQuotesFromString = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(RemoveQuotesFromString)).BeginInit(); RemoveQuotesFromString.ActionName = "RemoveQuotesFromString"; RemoveQuotesFromString.ButtonText = "RemoveQuotesFromString"; // Used if button is placed on a menu. RemoveQuotesFromString.RegisterInCR = true; RemoveQuotesFromString.Execute += RemoveQuotesFromString_Execute; RemoveQuotesFromString.CheckAvailability += RemoveQuotesFromString_CheckAvailability; ((System.ComponentModel.ISupportInitialize)(RemoveQuotesFromString)).EndInit(); }
public void registerTemplateExpandWithCollapsedRegions() { DevExpress.CodeRush.Core.Action TemplateExpandWithCollapsedRegions = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(TemplateExpandWithCollapsedRegions)).BeginInit(); TemplateExpandWithCollapsedRegions.ActionName = "TemplateExpandWithCollapsedRegions"; TemplateExpandWithCollapsedRegions.ButtonText = "TemplateExpandWithCollapsedRegions"; // Used if button is placed on a menu. TemplateExpandWithCollapsedRegions.RegisterInCR = true; TemplateExpandWithCollapsedRegions.Execute += TemplateExpandWithCollapsedRegions_Execute; TemplateExpandWithCollapsedRegions.CheckAvailability += TemplateExpandWithCollapsedRegions_CheckAvailability; ((System.ComponentModel.ISupportInitialize)(TemplateExpandWithCollapsedRegions)).EndInit(); }
public void registerImportTemplates() { DevExpress.CodeRush.Core.Action ImportTemplates = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(ImportTemplates)).BeginInit(); ImportTemplates.ActionName = "ImportTemplates"; ImportTemplates.ButtonText = "Import Templates"; // Used if button is placed on a menu. ImportTemplates.RegisterInCR = true; ImportTemplates.Execute += ImportTemplates_Execute; ImportTemplates.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.DevExpress; ((System.ComponentModel.ISupportInitialize)(ImportTemplates)).EndInit(); }
public void createShowShortcutOptions() { DevExpress.CodeRush.Core.Action ShowShortcutOptions = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(ShowShortcutOptions)).BeginInit(); ShowShortcutOptions.ActionName = "ShowShortcutOptions"; ShowShortcutOptions.ButtonText = "&Shortcuts..."; // Used if button is placed on a menu. ShowShortcutOptions.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.DevExpress; ShowShortcutOptions.Position = 4; ShowShortcutOptions.RegisterInCR = true; ShowShortcutOptions.Execute += ShowShortcutOptions_Execute; ((System.ComponentModel.ISupportInitialize)(ShowShortcutOptions)).EndInit(); }
public void registerSetPluginVersion() { DevExpress.CodeRush.Core.Action SetPluginVersion = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(SetPluginVersion)).BeginInit(); SetPluginVersion.ActionName = "SetPluginVersion"; SetPluginVersion.ButtonText = "Set Plugin Version"; // Used if button is placed on a menu. SetPluginVersion.RegisterInCR = true; SetPluginVersion.CheckAvailability += SetPluginVersion_CheckAvailability; SetPluginVersion.Execute += SetPluginVersion_Execute; SetPluginVersion.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.ProjectContext; ((System.ComponentModel.ISupportInitialize)(SetPluginVersion)).EndInit(); }
public void createShowTemplateOptions() { if (!CodeRush.Options.IsRegistered("Editor\\Templates")) { return; } DevExpress.CodeRush.Core.Action ShowTemplateOptions = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(ShowTemplateOptions)).BeginInit(); ShowTemplateOptions.ActionName = "ShowTemplateOptions"; ShowTemplateOptions.ButtonText = "&Templates..."; // Used if button is placed on a menu. ShowTemplateOptions.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.DevExpress; ShowTemplateOptions.Position = 3; ShowTemplateOptions.RegisterInCR = true; ShowTemplateOptions.Execute += ShowTemplateOptions_Execute; ((System.ComponentModel.ISupportInitialize)(ShowTemplateOptions)).EndInit(); }
// public methods public DevExpress.CodeRush.Core.Action GetAction() { DevExpress.CodeRush.Core.Action action = CodeRush.Actions.Get(_Command); if (action != null) { return(action); } string parameters; string isolatedAction = _Command; CodeRush.StrUtil.SeparateParams(ref isolatedAction, out parameters); if (isolatedAction != _Command) { return(CodeRush.Actions.Get(isolatedAction)); } return(null); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SortLinesPlugIn)); this._actionSortLines = new DevExpress.CodeRush.Core.Action(this.components); ((System.ComponentModel.ISupportInitialize)(this._actionSortLines)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // _actionSortLines // this._actionSortLines.ActionName = "Sort Lines"; this._actionSortLines.ButtonText = "Sort Lines"; this._actionSortLines.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.None; this._actionSortLines.Description = "Sorts lines in the code editor."; this._actionSortLines.Image = ((System.Drawing.Bitmap)(resources.GetObject("_actionSortLines.Image"))); this._actionSortLines.ImageBackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(254)), ((System.Byte)(0))); this._actionSortLines.RegisterInVS = true; this._actionSortLines.Execute += new DevExpress.CodeRush.Core.CommandExecuteEventHandler(this.actionSortLines_Execute); this._actionSortLines.QueryStatus += new DevExpress.CodeRush.Core.QueryStatusEventHandler(this.actionSortLines_QueryStatus); ((System.ComponentModel.ISupportInitialize)(this._actionSortLines)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
public bool Execute() { string lParams = _Parameters; DevExpress.CodeRush.Core.Action codeRushCommand = GetAction(); if (codeRushCommand != null) { bool handled = true; codeRushCommand.DoExecute(lParams, ref handled); return(handled); } string commandName = GetFullCommandName(); if (CodeRush.Command.Exists(commandName)) { return(CodeRush.Command.Execute(commandName, _Parameters)); } else { return(false); } }
public void createShowTemplateOptions() { if (!CodeRush.Options.IsRegistered("Editor\\Templates")) return; DevExpress.CodeRush.Core.Action ShowTemplateOptions = new DevExpress.CodeRush.Core.Action(components); ((System.ComponentModel.ISupportInitialize)(ShowTemplateOptions)).BeginInit(); ShowTemplateOptions.ActionName = "ShowTemplateOptions"; ShowTemplateOptions.ButtonText = "&Templates..."; // Used if button is placed on a menu. ShowTemplateOptions.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.DevExpress; ShowTemplateOptions.Position = 3; ShowTemplateOptions.RegisterInCR = true; ShowTemplateOptions.Execute += ShowTemplateOptions_Execute; ((System.ComponentModel.ISupportInitialize)(ShowTemplateOptions)).EndInit(); }