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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/ElementLabelProvider_NEW.java

Issue 934353002: Issue 22476. Outline for enums. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/internal/text/editor/ElementLabelProvider_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/ElementLabelProvider_NEW.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/ElementLabelProvider_NEW.java
index 8cf5b110c2eb6ec8a1e0fa7054b5efd973747307..79e5ea19e5d35e9a1e7f4db97cb27fe1af9b81ab 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/ElementLabelProvider_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/ElementLabelProvider_NEW.java
@@ -81,6 +81,11 @@ public class ElementLabelProvider_NEW extends LabelProvider implements
if (elementKind.equals(ElementKind.CLASS) || elementKind.equals(ElementKind.CLASS_TYPE_ALIAS)) {
return isPrivate ? DartPluginImages.DESC_DART_CLASS_PRIVATE
: DartPluginImages.DESC_DART_CLASS_PUBLIC;
+ } else if (elementKind.equals(ElementKind.ENUM)) {
+ return isPrivate ? DartPluginImages.DESC_DART_ENUM_PRIVATE
+ : DartPluginImages.DESC_DART_ENUM_PUBLIC;
+ } else if (elementKind.equals(ElementKind.ENUM_CONSTANT)) {
+ return DartPluginImages.DESC_DART_FIELD_PUBLIC;
} else if (elementKind.equals(ElementKind.COMPILATION_UNIT)) {
return DartPluginImages.DESC_DART_COMP_UNIT;
} else if (elementKind.equals(ElementKind.CONSTRUCTOR)

Powered by Google App Engine
This is Rietveld 408576698