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

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

Issue 9834028: Initial implementation of "Rename Local Variable" refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: LInked/inline mode for rename Created 8 years, 9 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.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RefactorActionGroup.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RefactorActionGroup.java
index 9ab7d56d9b011234eaa6eb879cb19447734cbe19..27edda55f02305f2b9d72dfba01315b9a3270b8f 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RefactorActionGroup.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RefactorActionGroup.java
@@ -515,14 +515,14 @@ public class RefactorActionGroup extends ActionGroup {
return;
}
ITextSelection textSelection = (ITextSelection) fEditor.getSelectionProvider().getSelection();
- DartTextSelection javaSelection =
+ DartTextSelection dartSelection =
new DartTextSelection(element,
getDocument(),
textSelection.getOffset(),
textSelection.getLength());
for (Iterator<SelectionDispatchAction> iter = fActions.iterator(); iter.hasNext();) {
- iter.next().update(javaSelection);
+ iter.next().update(dartSelection);
}
fillRefactorMenu(menu);
for (Iterator<SelectionDispatchAction> iter = fActions.iterator(); iter.hasNext();) {
@@ -651,7 +651,7 @@ public class RefactorActionGroup extends ActionGroup {
}
});
ITextSelection textSelection = (ITextSelection) fEditor.getSelectionProvider().getSelection();
- DartTextSelection javaSelection =
+ DartTextSelection dartSelection =
new DartTextSelection(getEditorInput(),
getDocument(),
textSelection.getOffset(),
@@ -659,7 +659,7 @@ public class RefactorActionGroup extends ActionGroup {
for (Iterator<SelectionDispatchAction> iter = fActions.iterator(); iter.hasNext();) {
SelectionDispatchAction action = iter.next();
- action.update(javaSelection);
+ action.update(dartSelection);
}
refactorSubmenu.removeAll();
if (fillRefactorMenu(refactorSubmenu) == 0) {

Powered by Google App Engine
This is Rietveld 408576698