/// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PlugIn1)); DevExpress.CodeRush.Core.InsertionPoint insertionPoint1 = new DevExpress.CodeRush.Core.InsertionPoint(); this.cdeCreateConstructorCall = new DevExpress.CodeRush.Core.CodeProvider(this.components); this.refConvertToConstructorCall = new DevExpress.Refactor.Core.RefactoringProvider(this.components); this.targetPicker1 = new DevExpress.CodeRush.PlugInCore.TargetPicker(this.components); ((System.ComponentModel.ISupportInitialize)(this.cdeCreateConstructorCall)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.refConvertToConstructorCall)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.targetPicker1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // cdeCreateConstructorCall // this.cdeCreateConstructorCall.ActionHintText = ""; this.cdeCreateConstructorCall.AutoActivate = true; this.cdeCreateConstructorCall.AutoUndo = false; this.cdeCreateConstructorCall.CodeIssueMessage = null; this.cdeCreateConstructorCall.Description = "Creates a constructor call matching the object initializer arguments and calls it." + ""; this.cdeCreateConstructorCall.Image = ((System.Drawing.Bitmap)(resources.GetObject("cdeCreateConstructorCall.Image"))); this.cdeCreateConstructorCall.NeedsSelection = false; this.cdeCreateConstructorCall.ProviderName = "Create (and convert initializer to) Constructor Call"; this.cdeCreateConstructorCall.Register = true; this.cdeCreateConstructorCall.SupportsAsyncMode = false; this.cdeCreateConstructorCall.CheckAvailability += new DevExpress.Refactor.Core.CheckAvailabilityEventHandler(this.cdeCreateConstructorCall_CheckAvailability); this.cdeCreateConstructorCall.Apply += new DevExpress.Refactor.Core.ApplyRefactoringEventHandler(this.cdeCreateConstructorCall_Apply); this.cdeCreateConstructorCall.PreparePreview += new DevExpress.Refactor.Core.PrepareRefactoringPreviewEventHandler(this.cdeCreateConstructorCall_PreparePreview); // // refConvertToConstructorCall // this.refConvertToConstructorCall.ActionHintText = "Call Constructor"; this.refConvertToConstructorCall.AutoActivate = true; this.refConvertToConstructorCall.AutoUndo = false; this.refConvertToConstructorCall.CodeIssueMessage = null; this.refConvertToConstructorCall.Description = "Converts object initializer construction code to a simple constructor call."; this.refConvertToConstructorCall.Image = ((System.Drawing.Bitmap)(resources.GetObject("refConvertToConstructorCall.Image"))); this.refConvertToConstructorCall.NeedsSelection = false; this.refConvertToConstructorCall.ProviderName = "Convert Initializer to Constructor Call"; this.refConvertToConstructorCall.Register = true; this.refConvertToConstructorCall.SupportsAsyncMode = false; this.refConvertToConstructorCall.CheckAvailability += new DevExpress.Refactor.Core.CheckAvailabilityEventHandler(this.refConvertToConstructorCall_CheckAvailability); this.refConvertToConstructorCall.Apply += new DevExpress.Refactor.Core.ApplyRefactoringEventHandler(this.refConvertToConstructorCall_Apply); this.refConvertToConstructorCall.PreparePreview += new DevExpress.Refactor.Core.PrepareRefactoringPreviewEventHandler(this.refConvertToConstructorCall_PreparePreview); // // targetPicker1 // this.targetPicker1.BigHint = null; this.targetPicker1.Code = null; insertionPoint1.ArrowFillColor = System.Drawing.Color.Red; insertionPoint1.ArrowFillOpacity = 30; insertionPoint1.ArrowLineColor = System.Drawing.Color.Red; insertionPoint1.LineColor = System.Drawing.Color.Red; insertionPoint1.LineOpacity = 200; this.targetPicker1.InsertionPoint = insertionPoint1; this.targetPicker1.IsModalMode = false; this.targetPicker1.ShortcutsHint = null; this.targetPicker1.TargetSelected += new DevExpress.CodeRush.PlugInCore.TargetSelectedEventHandler(this.targetPicker1_TargetSelected); this.TextViewActivated += new DevExpress.CodeRush.Core.TextViewHandler(this.PlugIn1_TextViewActivated); ((System.ComponentModel.ISupportInitialize)(this.cdeCreateConstructorCall)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.refConvertToConstructorCall)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.targetPicker1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <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(); DevExpress.CodeRush.Core.InsertionPoint insertionPoint1 = new DevExpress.CodeRush.Core.InsertionPoint(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RefactorGeneralizePlugin)); this.codeProvider = new DevExpress.CodeRush.Core.CodeProvider(this.components); this.targetPicker = new DevExpress.CodeRush.PlugInCore.TargetPicker(this.components); this.action = new DevExpress.CodeRush.Core.Action(this.components); this.actionHint = new DevExpress.CodeRush.PlugInCore.ActionHint(this.components); ((System.ComponentModel.ISupportInitialize)(this.codeProvider)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.targetPicker)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.action)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.actionHint)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // codeProvider // this.codeProvider.ActionHintText = "Generalize"; this.codeProvider.AutoActivate = true; this.codeProvider.AutoUndo = false; this.codeProvider.Description = "Generalizes, or \"pushes\", the member up to its base class."; this.codeProvider.DisplayName = "Generalize"; this.codeProvider.ProviderName = "Generalize"; this.codeProvider.Register = true; this.codeProvider.Apply += new DevExpress.Refactor.Core.ApplyRefactoringEventHandler(this.codeProvider_Apply); this.codeProvider.CheckAvailability += new DevExpress.Refactor.Core.CheckAvailabilityEventHandler(this.codeProvider_CheckAvailability); // // targetPicker // this.targetPicker.BigHint = null; insertionPoint1.ArrowFillColor = System.Drawing.Color.Red; insertionPoint1.ArrowFillOpacity = 30; insertionPoint1.ArrowLineColor = System.Drawing.Color.Red; insertionPoint1.LineColor = System.Drawing.Color.Red; insertionPoint1.LineOpacity = 200; this.targetPicker.InsertionPoint = insertionPoint1; this.targetPicker.IsModalMode = false; this.targetPicker.ShortcutsHint = null; this.targetPicker.Canceled += new System.EventHandler(this.targetPicker_Canceled); this.targetPicker.TargetSelected += new DevExpress.CodeRush.PlugInCore.TargetSelectedEventHandler(this.targetPicker_TargetSelected); // // action // this.action.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.None; this.action.Image = ((System.Drawing.Bitmap)(resources.GetObject("action.Image"))); this.action.ImageBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(254)))), ((int)(((byte)(0))))); this.action.Execute += new DevExpress.CodeRush.Core.CommandExecuteEventHandler(this.action_Execute); // // actionHint // this.actionHint.Color = System.Drawing.Color.DarkGray; this.actionHint.Feature = null; this.actionHint.OptionsPath = null; this.actionHint.ResetDisplayCountOnStartup = false; this.actionHint.Text = null; ((System.ComponentModel.ISupportInitialize)(this.codeProvider)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.targetPicker)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.action)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.actionHint)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <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(); DevExpress.CodeRush.Core.InsertionPoint insertionPoint1 = new DevExpress.CodeRush.Core.InsertionPoint(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RefactorGeneralizePlugin)); this.codeProvider = new DevExpress.CodeRush.Core.CodeProvider(this.components); this.targetPicker = new DevExpress.CodeRush.PlugInCore.TargetPicker(this.components); this.action = new DevExpress.CodeRush.Core.Action(this.components); this.actionHint = new DevExpress.CodeRush.PlugInCore.ActionHint(this.components); ((System.ComponentModel.ISupportInitialize)(this.codeProvider)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.targetPicker)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.action)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.actionHint)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // codeProvider // this.codeProvider.ActionHintText = "Generalize"; this.codeProvider.AutoActivate = true; this.codeProvider.AutoUndo = false; this.codeProvider.Description = "Generalizes, or \"pushes\", the member up to its base class."; this.codeProvider.DisplayName = "Generalize"; this.codeProvider.ProviderName = "Generalize"; this.codeProvider.Register = true; this.codeProvider.Apply += new DevExpress.Refactor.Core.ApplyRefactoringEventHandler(this.codeProvider_Apply); this.codeProvider.CheckAvailability += new DevExpress.Refactor.Core.CheckAvailabilityEventHandler(this.codeProvider_CheckAvailability); // // targetPicker // this.targetPicker.BigHint = null; insertionPoint1.ArrowFillColor = System.Drawing.Color.Red; insertionPoint1.ArrowFillOpacity = 30; insertionPoint1.ArrowLineColor = System.Drawing.Color.Red; insertionPoint1.LineColor = System.Drawing.Color.Red; insertionPoint1.LineOpacity = 200; this.targetPicker.InsertionPoint = insertionPoint1; this.targetPicker.IsModalMode = false; this.targetPicker.ShortcutsHint = null; this.targetPicker.Canceled += new System.EventHandler(this.targetPicker_Canceled); this.targetPicker.TargetSelected += new DevExpress.CodeRush.PlugInCore.TargetSelectedEventHandler(this.targetPicker_TargetSelected); // // action // this.action.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.None; this.action.Image = ((System.Drawing.Bitmap)(resources.GetObject("action.Image"))); this.action.ImageBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(254)))), ((int)(((byte)(0))))); this.action.Execute += new DevExpress.CodeRush.Core.CommandExecuteEventHandler(this.action_Execute); // // actionHint // this.actionHint.Color = System.Drawing.Color.DarkGray; this.actionHint.Feature = null; this.actionHint.OptionsPath = null; this.actionHint.ResetDisplayCountOnStartup = false; this.actionHint.Text = null; ((System.ComponentModel.ISupportInitialize)(this.codeProvider)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.targetPicker)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.action)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.actionHint)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
/// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PlugIn1)); DevExpress.CodeRush.Core.InsertionPoint insertionPoint1 = new DevExpress.CodeRush.Core.InsertionPoint(); this.cpImplementIDisposable = new DevExpress.CodeRush.Core.CodeProvider(this.components); this.targetPicker1 = new DevExpress.CodeRush.PlugInCore.TargetPicker(this.components); this.ipFieldsShouldBeDisposed = new DevExpress.CodeRush.Core.IssueProvider(this.components); this.ipClassShouldImplementIDisposable = new DevExpress.CodeRush.Core.IssueProvider(this.components); this.cpDisposeFields = new DevExpress.CodeRush.Core.CodeProvider(this.components); ((System.ComponentModel.ISupportInitialize)(this.cpImplementIDisposable)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.targetPicker1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ipFieldsShouldBeDisposed)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ipClassShouldImplementIDisposable)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cpDisposeFields)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // cpImplementIDisposable // this.cpImplementIDisposable.ActionHintText = "Implement IDisposable"; this.cpImplementIDisposable.AutoActivate = true; this.cpImplementIDisposable.AutoUndo = false; this.cpImplementIDisposable.CodeIssueMessage = null; this.cpImplementIDisposable.Description = "Implements the IDisposable interface in this class."; this.cpImplementIDisposable.Image = ((System.Drawing.Bitmap)(resources.GetObject("cpImplementIDisposable.Image"))); this.cpImplementIDisposable.NeedsSelection = false; this.cpImplementIDisposable.ProviderName = "Implement IDisposable"; this.cpImplementIDisposable.Register = true; this.cpImplementIDisposable.SupportsAsyncMode = false; this.cpImplementIDisposable.Apply += new DevExpress.Refactor.Core.ApplyRefactoringEventHandler(this.cpImplementIDisposable_Apply); this.cpImplementIDisposable.CheckAvailability += new DevExpress.Refactor.Core.CheckAvailabilityEventHandler(this.cpImplementIDisposable_CheckAvailability); // // targetPicker1 // this.targetPicker1.BigHint = null; this.targetPicker1.Code = null; insertionPoint1.ArrowFillColor = System.Drawing.Color.Red; insertionPoint1.ArrowFillOpacity = 30; insertionPoint1.ArrowLineColor = System.Drawing.Color.Red; insertionPoint1.LineColor = System.Drawing.Color.Red; insertionPoint1.LineOpacity = 200; this.targetPicker1.InsertionPoint = insertionPoint1; this.targetPicker1.IsModalMode = false; this.targetPicker1.ShortcutsHint = null; this.targetPicker1.TargetSelected += new DevExpress.CodeRush.PlugInCore.TargetSelectedEventHandler(this.targetPicker1_TargetSelected); // // ipFieldsShouldBeDisposed // this.ipFieldsShouldBeDisposed.DefaultIssueType = DevExpress.CodeRush.Core.CodeIssueType.None; this.ipFieldsShouldBeDisposed.Description = "This issue appears when fields implementing IDisposable are inside a class that a" + "lso implements IDisposable, but those fields are NOT disposed."; this.ipFieldsShouldBeDisposed.ProviderName = "Fields should be disposed"; this.ipFieldsShouldBeDisposed.Register = true; this.ipFieldsShouldBeDisposed.CheckCodeIssues += new DevExpress.CodeRush.Core.CheckCodeIssuesEventHandler(this.ipFieldsShouldBeDisposed_CheckCodeIssues); // // ipClassShouldImplementIDisposable // this.ipClassShouldImplementIDisposable.DefaultIssueType = DevExpress.CodeRush.Core.CodeIssueType.None; this.ipClassShouldImplementIDisposable.Description = "This issue appears when a class contains fields that implement IDisposable, but t" + "he class itself does NOT implement IDisposable."; this.ipClassShouldImplementIDisposable.ProviderName = "Class should implement IDisposable"; this.ipClassShouldImplementIDisposable.Register = true; this.ipClassShouldImplementIDisposable.CheckCodeIssues += new DevExpress.CodeRush.Core.CheckCodeIssuesEventHandler(this.ipClassShouldImplementIDisposable_CheckCodeIssues); // // cpDisposeFields // this.cpDisposeFields.ActionHintText = "Dispose Fields"; this.cpDisposeFields.AutoActivate = true; this.cpDisposeFields.AutoUndo = false; this.cpDisposeFields.CodeIssueMessage = null; this.cpDisposeFields.Description = "Disposes of any fields that implement IDisposable inside this class."; this.cpDisposeFields.Image = ((System.Drawing.Bitmap)(resources.GetObject("cpDisposeFields.Image"))); this.cpDisposeFields.NeedsSelection = false; this.cpDisposeFields.ProviderName = "Dispose Fields"; this.cpDisposeFields.Register = true; this.cpDisposeFields.SupportsAsyncMode = false; this.cpDisposeFields.Apply += new DevExpress.Refactor.Core.ApplyRefactoringEventHandler(this.cpDisposeFields_Apply); this.cpDisposeFields.CheckAvailability += new DevExpress.Refactor.Core.CheckAvailabilityEventHandler(this.cpDisposeFields_CheckAvailability); this.cpDisposeFields.PreparePreview += new DevExpress.Refactor.Core.PrepareRefactoringPreviewEventHandler(this.cpDisposeFields_PreparePreview); ((System.ComponentModel.ISupportInitialize)(this.cpImplementIDisposable)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.targetPicker1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ipFieldsShouldBeDisposed)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ipClassShouldImplementIDisposable)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cpDisposeFields)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }