]> source.dussan.org Git - aspectj.git/commitdiff
new icons for annotation/enum, 'borrowed' from JDT UI
authoraclement <aclement>
Thu, 24 Mar 2005 13:08:20 +0000 (13:08 +0000)
committeraclement <aclement>
Thu, 24 Mar 2005 13:08:20 +0000 (13:08 +0000)
ajde/src/org/aspectj/ajde/resources/structure/annotation.gif [new file with mode: 0644]
ajde/src/org/aspectj/ajde/resources/structure/enum.gif [new file with mode: 0644]
ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java

diff --git a/ajde/src/org/aspectj/ajde/resources/structure/annotation.gif b/ajde/src/org/aspectj/ajde/resources/structure/annotation.gif
new file mode 100644 (file)
index 0000000..435d62e
Binary files /dev/null and b/ajde/src/org/aspectj/ajde/resources/structure/annotation.gif differ
diff --git a/ajde/src/org/aspectj/ajde/resources/structure/enum.gif b/ajde/src/org/aspectj/ajde/resources/structure/enum.gif
new file mode 100644 (file)
index 0000000..15535f5
Binary files /dev/null and b/ajde/src/org/aspectj/ajde/resources/structure/enum.gif differ
index 3c2914c64c4063796f017299c59446efbdd4c505..9dd17af67ec3168e542766361d013957b212c4b9 100644 (file)
@@ -48,7 +48,9 @@ public abstract class AbstractIconRegistry {
        
        protected final AbstractIcon METHOD = createIcon(STRUCTURE_PATH + "method.gif");
        protected final AbstractIcon FIELD = createIcon(STRUCTURE_PATH + "field.gif");
-       protected final AbstractIcon ENUM_VALUE = createIcon(STRUCTURE_PATH + "field.gif");//???Change to an enum value icon...
+       protected final AbstractIcon ENUM_VALUE = createIcon(STRUCTURE_PATH + "field.gif"); // ??? should be enum value icon
+       protected final AbstractIcon ENUM = createIcon(STRUCTURE_PATH + "enum.gif");
+       protected final AbstractIcon ANNOTATION = createIcon(STRUCTURE_PATH + "annotation.gif");
        protected final AbstractIcon CLASS = createIcon(STRUCTURE_PATH + "class.gif");
        protected final AbstractIcon INTERFACE = createIcon(STRUCTURE_PATH + "interface.gif");
 
@@ -138,6 +140,10 @@ public abstract class AbstractIconRegistry {
                        return ERROR;
                } else if (kind == IProgramElement.Kind.IMPORT_REFERENCE) {
                        return RELATION_REFERENCE_FORWARD;
+               } else if (kind == IProgramElement.Kind.ANNOTATION) {
+                       return ANNOTATION;
+               } else if (kind == IProgramElement.Kind.ENUM) {
+                       return ENUM;
                } else {
                        System.err.println("AJDE Message: unresolved icon kind " + kind);
                        return null;