protected override void Run(ITextEditor textEditor, RefactoringProvider provider) { using (var pm = Gui.AsynchronousWaitDialog.ShowWaitDialog("${res:SharpDevelop.Refactoring.RemoveUnusedImports}")) { NamespaceRefactoringService.ManageUsings(pm, textEditor.FileName, textEditor.Document, true, true); } }
protected override void Run(TextEditorControl textEditor, RefactoringProvider provider) { NamespaceRefactoringService.ManageUsings(textEditor.FileName, textEditor.Document, true, true); }