コード例 #1
0
 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);
     }
 }
コード例 #2
0
ファイル: RefactorMenu.cs プロジェクト: carlhuth/GenXSource
 protected override void Run(TextEditorControl textEditor, RefactoringProvider provider)
 {
     NamespaceRefactoringService.ManageUsings(textEditor.FileName, textEditor.Document, true, true);
 }