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

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

Issue 565973006: Issue 19800. Support for inlining getters/setters. (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/InlineMethodAction_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/InlineMethodAction_NEW.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/InlineMethodAction_NEW.java
index fc0b3fb2f3ceb8e1999bcc7093c672f2d797429e..93e691bb8c584ea82ed4bdc19baa06b2972eadf6 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/InlineMethodAction_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/InlineMethodAction_NEW.java
@@ -61,7 +61,8 @@ public class InlineMethodAction_NEW extends AbstractRefactoringAction_NEW {
if (elements.length != 0) {
Element element = elements[0];
String kind = element.getKind();
- setEnabled(ElementKind.METHOD.equals(kind) || ElementKind.FUNCTION.equals(kind));
+ setEnabled(ElementKind.METHOD.equals(kind) || ElementKind.FUNCTION.equals(kind)
+ || ElementKind.GETTER.equals(kind) || ElementKind.SETTER.equals(kind));
}
}

Powered by Google App Engine
This is Rietveld 408576698