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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RefactorActionGroup_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/RefactorActionGroup_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RefactorActionGroup_NEW.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RefactorActionGroup_NEW.java
index e9150a1364d439b374ff55cc7e660e8efd1f2feb..eeb408aa89b2aa83ff8bf0d34a670263e2d779da 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RefactorActionGroup_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RefactorActionGroup_NEW.java
@@ -30,8 +30,8 @@ public class RefactorActionGroup_NEW extends AbstractDartSelectionActionGroup {
private RenameAction_NEW renameAction;
private ExtractLocalAction_NEW extractLocalAction;
private InlineAction_NEW inlineAction;
+ private ExtractMethodAction_NEW extractMethodAction;
-// private ExtractMethodAction extractMethodAction;
// private ConvertMethodToGetterAction convertMethodToGetterAction;
// private ConvertGetterToMethodAction convertGetterToMethodAction;
@@ -40,13 +40,12 @@ public class RefactorActionGroup_NEW extends AbstractDartSelectionActionGroup {
renameAction = new RenameAction_NEW(editor);
extractLocalAction = new ExtractLocalAction_NEW(editor);
inlineAction = new InlineAction_NEW(editor);
-// extractMethodAction = new ExtractMethodAction(editor);
+ extractMethodAction = new ExtractMethodAction_NEW(editor);
// convertMethodToGetterAction = new ConvertMethodToGetterAction(editor);
// convertGetterToMethodAction = new ConvertGetterToMethodAction(editor);
initActions();
editor.setAction("RenameElement", renameAction);
- addActions(renameAction, extractLocalAction, inlineAction
-// extractMethodAction,
+ addActions(renameAction, extractLocalAction, extractMethodAction, inlineAction
// convertMethodToGetterAction,
// convertGetterToMethodAction
);
@@ -58,7 +57,7 @@ public class RefactorActionGroup_NEW extends AbstractDartSelectionActionGroup {
super.dispose();
renameAction = null;
extractLocalAction = null;
-// extractMethodAction = null;
+ extractMethodAction = null;
inlineAction = null;
// convertMethodToGetterAction = null;
// convertGetterToMethodAction = null;
@@ -69,8 +68,8 @@ public class RefactorActionGroup_NEW extends AbstractDartSelectionActionGroup {
super.fillActionBars(actionBars);
actionBars.setGlobalActionHandler(DartActionConstants.RENAME, renameAction);
actionBars.setGlobalActionHandler(DartActionConstants.EXTRACT_LOCAL, extractLocalAction);
+ actionBars.setGlobalActionHandler(DartActionConstants.EXTRACT_METHOD, extractMethodAction);
actionBars.setGlobalActionHandler(DartActionConstants.INLINE, inlineAction);
-// actionBars.setGlobalActionHandler(DartActionConstants.EXTRACT_METHOD, extractMethodAction);
// actionBars.setGlobalActionHandler(
// DartActionConstants.CONVERT_METHOD_TO_GETTER,
// convertMethodToGetterAction);

Powered by Google App Engine
This is Rietveld 408576698