Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/ExtractMethodAction_NEW.java

Issue 554143003: Integrate the EXTRACT_METHOD refactoring into Editor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/ExtractMethodAction_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/ExtractLocalAction_NEW.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/ExtractMethodAction_NEW.java
similarity index 80%
copy from editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/ExtractLocalAction_NEW.java
copy to editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/ExtractMethodAction_NEW.java
index a781ee32d2f166c7fdaae6b12f1fe7bfb1ceb010..995cf8125ff1154605279c0a8e51d4b44b4b2896 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/ExtractLocalAction_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/ExtractMethodAction_NEW.java
@@ -13,10 +13,10 @@
*/
package com.google.dart.tools.ui.actions;
-import com.google.dart.tools.ui.internal.refactoring.ExtractLocalWizard_NEW;
+import com.google.dart.tools.ui.internal.refactoring.ExtractMethodWizard_NEW;
import com.google.dart.tools.ui.internal.refactoring.RefactoringMessages;
import com.google.dart.tools.ui.internal.refactoring.RefactoringSaveHelper;
-import com.google.dart.tools.ui.internal.refactoring.ServerExtractLocalRefactoring;
+import com.google.dart.tools.ui.internal.refactoring.ServerExtractMethodRefactoring;
import com.google.dart.tools.ui.internal.refactoring.actions.RefactoringStarter;
import com.google.dart.tools.ui.internal.text.DartHelpContextIds;
import com.google.dart.tools.ui.internal.text.editor.DartEditor;
@@ -26,12 +26,12 @@ import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.ui.PlatformUI;
/**
- * {@link Action} for "Extract Local" refactoring.
+ * {@link Action} for "Extract Method" refactoring.
*
* @coverage dart.editor.ui.refactoring.ui
*/
-public class ExtractLocalAction_NEW extends AbstractRefactoringAction_NEW {
- public ExtractLocalAction_NEW(DartEditor editor) {
+public class ExtractMethodAction_NEW extends AbstractRefactoringAction_NEW {
+ public ExtractMethodAction_NEW(DartEditor editor) {
super(editor);
}
@@ -40,18 +40,18 @@ public class ExtractLocalAction_NEW extends AbstractRefactoringAction_NEW {
if (!waitReadyForRefactoring()) {
return;
}
- ServerExtractLocalRefactoring refactoring = new ServerExtractLocalRefactoring(
+ ServerExtractMethodRefactoring refactoring = new ServerExtractMethodRefactoring(
file,
selectionOffset,
selectionLength);
try {
new RefactoringStarter().activate(
- new ExtractLocalWizard_NEW(refactoring),
+ new ExtractMethodWizard_NEW(refactoring),
getShell(),
- RefactoringMessages.ExtractLocalAction_dialog_title,
+ RefactoringMessages.ExtractMethodAction_dialog_title,
RefactoringSaveHelper.SAVE_NOTHING);
} catch (Throwable e) {
- showError("Extract Local", e);
+ showError("Extract Method", e);
}
}

Powered by Google App Engine
This is Rietveld 408576698