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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/rename/RenameLocalVariableProcessor.java

Issue 11665018: Fix for renaming named constructor reference in 'super' invocation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/internal/corext/refactoring/rename/RenameLocalVariableProcessor.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/rename/RenameLocalVariableProcessor.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/rename/RenameLocalVariableProcessor.java
index 4da8bfb6a015b106efa4a2a1d21f8bfae1c68666..a2bb78d50a761a8fed6686808fcdee49f08af3cf 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/rename/RenameLocalVariableProcessor.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/rename/RenameLocalVariableProcessor.java
@@ -46,7 +46,6 @@ import com.google.dart.tools.internal.corext.refactoring.util.Messages;
import com.google.dart.tools.ui.internal.refactoring.RefactoringSaveHelper;
import com.google.dart.tools.ui.internal.viewsupport.BasicElementLabels;
-import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -224,7 +223,6 @@ public class RenameLocalVariableProcessor extends DartRenameProcessor {
private final CompilationUnit unit;
private final String oldName;
- private String newName;
private DartUnit unitNode;
private DartNode variableNode;
private VariableElement variableElement;
@@ -289,11 +287,6 @@ public class RenameLocalVariableProcessor extends DartRenameProcessor {
}
@Override
- public String getNewElementName() {
- return newName;
- }
-
- @Override
public String getProcessorName() {
return RefactoringCoreMessages.RenameLocalVariableProcessor_name;
}
@@ -309,12 +302,6 @@ public class RenameLocalVariableProcessor extends DartRenameProcessor {
}
@Override
- public void setNewElementName(String newName) {
- Assert.isNotNull(newName);
- this.newName = newName;
- }
-
- @Override
protected RefactoringStatus doCheckFinalConditions(IProgressMonitor pm,
CheckConditionsContext context) throws CoreException, OperationCanceledException {
try {

Powered by Google App Engine
This is Rietveld 408576698