diff options
author | aclement <aclement> | 2005-03-24 13:08:20 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-03-24 13:08:20 +0000 |
commit | facce3e93ca7a276a4852b033d68a6bc2d667cf2 (patch) | |
tree | 248e53febc20e34b083534fb7c7cd083663303c4 /ajde/src | |
parent | b967da32c016fa053fcef0e887b24ca3e2fda8c9 (diff) | |
download | aspectj-facce3e93ca7a276a4852b033d68a6bc2d667cf2.tar.gz aspectj-facce3e93ca7a276a4852b033d68a6bc2d667cf2.zip |
new icons for annotation/enum, 'borrowed' from JDT UI
Diffstat (limited to 'ajde/src')
-rw-r--r-- | ajde/src/org/aspectj/ajde/resources/structure/annotation.gif | bin | 0 -> 350 bytes | |||
-rw-r--r-- | ajde/src/org/aspectj/ajde/resources/structure/enum.gif | bin | 0 -> 361 bytes | |||
-rw-r--r-- | ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java | 8 |
3 files changed, 7 insertions, 1 deletions
diff --git a/ajde/src/org/aspectj/ajde/resources/structure/annotation.gif b/ajde/src/org/aspectj/ajde/resources/structure/annotation.gif Binary files differnew file mode 100644 index 000000000..435d62ed4 --- /dev/null +++ b/ajde/src/org/aspectj/ajde/resources/structure/annotation.gif diff --git a/ajde/src/org/aspectj/ajde/resources/structure/enum.gif b/ajde/src/org/aspectj/ajde/resources/structure/enum.gif Binary files differnew file mode 100644 index 000000000..15535f52f --- /dev/null +++ b/ajde/src/org/aspectj/ajde/resources/structure/enum.gif diff --git a/ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java b/ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java index 3c2914c64..9dd17af67 100644 --- a/ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java +++ b/ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java @@ -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; |