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

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

Issue 548593002: Integrate 'Rename' 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/ExtractLocalAction_NEW.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/AbstractRefactoringAction_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/AbstractRefactoringAction_NEW.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/AbstractRefactoringAction_NEW.java
index 1866960af82e04ecd55c203eb421b36a2ea895c7..01e9d594ecc0c49ec4d324d51f83ecdd9a0ff13a 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/AbstractRefactoringAction_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/AbstractRefactoringAction_NEW.java
@@ -17,6 +17,7 @@ import com.google.dart.server.GetAvailableRefactoringsConsumer;
import com.google.dart.tools.core.DartCore;
import com.google.dart.tools.ui.internal.actions.SelectionConverter;
import com.google.dart.tools.ui.internal.text.editor.DartEditor;
+import com.google.dart.tools.ui.internal.util.ExceptionHandler;
import org.eclipse.jface.viewers.SelectionChangedEvent;
@@ -31,6 +32,7 @@ public abstract class AbstractRefactoringAction_NEW extends AbstractDartSelectio
public AbstractRefactoringAction_NEW(DartEditor editor, String kind) {
super(editor);
this.kind = kind;
+ init();
setEnabled(SelectionConverter.canOperateOn(editor));
}
@@ -62,4 +64,11 @@ public abstract class AbstractRefactoringAction_NEW extends AbstractDartSelectio
}
return true;
}
+
+ protected void showError(String title, Throwable e) {
+ ExceptionHandler.handle(
+ e,
+ title,
+ "Unexpected exception occurred. See the error log for more details.");
+ }
}
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/ExtractLocalAction_NEW.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698