From facce3e93ca7a276a4852b033d68a6bc2d667cf2 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 24 Mar 2005 13:08:20 +0000 Subject: [PATCH] new icons for annotation/enum, 'borrowed' from JDT UI --- .../ajde/resources/structure/annotation.gif | Bin 0 -> 350 bytes .../org/aspectj/ajde/resources/structure/enum.gif | Bin 0 -> 361 bytes .../org/aspectj/ajde/ui/AbstractIconRegistry.java | 8 +++++++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 ajde/src/org/aspectj/ajde/resources/structure/annotation.gif create mode 100644 ajde/src/org/aspectj/ajde/resources/structure/enum.gif 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 index 0000000000000000000000000000000000000000..435d62ed4c38a09b7c6b040e83e8a25cd77f0f8b GIT binary patch literal 350 zcmZ?wbhEHb6krfwxXQo~S-rp|dx~EAbp4F!CfT#ha%Y?8&UPtZ=vuMJy>f9t{qpFJ zweP?Dc>DSLkKccND<&0AUeUK|_v!;@k6gNa>iYfs$t&vTZ|dKCV)pKHGq)Yze){^m zuRr%*y#49N@2|i9eE#|S+Vht;Uc7qx?aSxizyAOK&p>UU_>+Z^fkA~q2V^kFPYi6; z4wEKK@swa`ZB09&VyiW?(?mJKOny>d8F!_LafAPIr4>F_ijJQrNJeT1A7ovdCZs0E z*xEQFcs5gdBQJ-92$P~Ov#@ldAQKaZh^#M{q*4l#LQqsZqoVAbDCtgLf%&q0e9}u8 ceVvvE1~W>ocXD-S<&@dBci;X4dmS090V>sYS^xk5 literal 0 HcmV?d00001 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 index 0000000000000000000000000000000000000000..15535f52f52b20b465a9adbe6c766edffc0a287c GIT binary patch literal 361 zcmZ?wbhEHb6krfwxXQrL6RFS_qtX|v+8?VnAx?clyvD=?%}I&claqBPr|3^fHJF-i zG(E#~Mz+Pw9Lrg`Hna2X<`p~7D{+}$>bjuJePOxB!g9~W)xJw={Fl}SF0Bh(Rv)~w zIbv07^!o0U4ZUfbCS+}yoVRUS(au@ryXI8wo?EkTVdH@%t%sI(9$z=<%(l7bb}YEK zXX%aOTOM9M^8eqz|Ns9pkOCBcvM@3*7%=F7G=coYz}Dt4L*UsZ2Lb-x>=P|h1!TLo zBx{(?ZMm4W`z^y7XK^Kws+nhXx)U|`GaEA_V|tnb zI~QvO=Y%vZB_-(z%}z30f`V!4a~8-YG6)NI>Sr?KIH@r5YHZjb%dQfx!XzXnDkj9V XHQYsnn}=Is^??&7Po4I4WUvMR>jHhA literal 0 HcmV?d00001 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; -- 2.39.5