diff --git a/src/AddIns/Misc/SharpRefactoring/Project/Src/CreateProperties.cs b/src/AddIns/Misc/SharpRefactoring/Project/Src/CreateProperties.cs index 6c438ba8b1..4c46a53e1a 100644 --- a/src/AddIns/Misc/SharpRefactoring/Project/Src/CreateProperties.cs +++ b/src/AddIns/Misc/SharpRefactoring/Project/Src/CreateProperties.cs @@ -27,7 +27,7 @@ namespace SharpRefactoring return null; } - CreatePropertiesDialog CreateDialog(InsertionContext context) + internal static CreatePropertiesDialog CreateDialog(InsertionContext context) { ITextEditor textEditor = context.TextArea.GetService(typeof(ITextEditor)) as ITextEditor; @@ -68,7 +68,7 @@ namespace SharpRefactoring return dialog; } - IEnumerable FindFields(IClass sourceClass) + static IEnumerable FindFields(IClass sourceClass) { int i = 0; diff --git a/src/AddIns/Misc/SharpRefactoring/Project/Src/CreatePropertiesCommand.cs b/src/AddIns/Misc/SharpRefactoring/Project/Src/CreatePropertiesCommand.cs index 2dbcfc4fed..f1f658043a 100644 --- a/src/AddIns/Misc/SharpRefactoring/Project/Src/CreatePropertiesCommand.cs +++ b/src/AddIns/Misc/SharpRefactoring/Project/Src/CreatePropertiesCommand.cs @@ -8,6 +8,7 @@ using ICSharpCode.SharpDevelop.Dom.Refactoring; using ICSharpCode.SharpDevelop.Editor; using ICSharpCode.SharpDevelop.Editor.AvalonEdit; using ICSharpCode.SharpDevelop.Refactoring; +using SharpRefactoring.Gui; namespace SharpRefactoring { @@ -17,7 +18,7 @@ namespace SharpRefactoring { new Snippet { Elements = { - new CreateProperties().GetElement(new SnippetInfo("refactoring:propall", "${refactoring:propall}", 0)) + new InlineRefactorSnippetElement(context => CreateProperties.CreateDialog(context), "") } }.Insert((TextArea)textEditor.GetService(typeof(TextArea))); }