1 19 20 package org.netbeans.modules.java.navigation; 21 22 import org.netbeans.api.java.source.UiUtils; 23 import org.openide.util.Utilities; 24 import java.util.EnumSet ; 25 import javax.lang.model.element.ElementKind; 26 import javax.lang.model.element.Modifier; 27 import javax.swing.Icon ; 28 import javax.swing.ImageIcon ; 29 30 34 final class JavaMembersAndHierarchyIcons { 35 public static final Icon INHERITED_ICON = new ImageIcon (Utilities.loadImage( 36 "org/netbeans/modules/java/navigation/resources/inherited.gif")); 38 public static final Icon SUPER_TYPE_HIERARCHY_ICON = new ImageIcon (Utilities.loadImage( 39 "org/netbeans/modules/java/navigation/resources/supertypehierarchy.gif")); 41 public static final Icon SUB_TYPE_HIERARCHY_ICON = new ImageIcon (Utilities.loadImage( 42 "org/netbeans/modules/java/navigation/resources/subtypehierarchy.gif")); 44 public static final Icon FQN_ICON = new ImageIcon (Utilities.loadImage( 45 "org/netbeans/modules/java/navigation/resources/fqn.gif")); 47 public static final Icon CLASS_ICON = UiUtils.getElementIcon(ElementKind.CLASS, 48 EnumSet.of(Modifier.PUBLIC)); 49 public static final Icon INNER_CLASS_ICON = UiUtils.getElementIcon(ElementKind.CLASS, 50 EnumSet.of(Modifier.PUBLIC)); 51 52 public static final Icon INTERFACE_ICON = UiUtils.getElementIcon(ElementKind.INTERFACE, 53 EnumSet.of(Modifier.PUBLIC)); 54 public static final Icon INNER_INTERFACE_ICON = UiUtils.getElementIcon(ElementKind.INTERFACE, 55 EnumSet.of(Modifier.PUBLIC)); 56 57 public static final Icon CONSTRUCTOR_ICON = UiUtils.getElementIcon(ElementKind.CONSTRUCTOR, 58 EnumSet.of(Modifier.PUBLIC)); 59 public static final Icon METHOD_ICON = UiUtils.getElementIcon(ElementKind.METHOD, 60 EnumSet.of(Modifier.PUBLIC)); 61 public static final Icon FIELD_ICON = UiUtils.getElementIcon(ElementKind.FIELD, 62 EnumSet.of(Modifier.PUBLIC)); 63 public static final Icon ENUM_ICON = UiUtils.getElementIcon(ElementKind.ENUM, 64 EnumSet.of(Modifier.PUBLIC)); 65 public static final Icon ENUM_CONSTANTS_ICON = UiUtils.getElementIcon(ElementKind.ENUM_CONSTANT, 66 EnumSet.of(Modifier.PUBLIC)); 67 public static final Icon PACKAGE_ICON = new ImageIcon (Utilities.loadImage( 68 "org/netbeans/modules/java/navigation/resources/package.gif")); public static final Icon PRIVATE_ICON = new ImageIcon (Utilities.loadImage( 70 "org/netbeans/modules/java/navigation/resources/private.gif")); public static final Icon PROTECTED_ICON = new ImageIcon (Utilities.loadImage( 72 "org/netbeans/modules/java/navigation/resources/protected.gif")); public static final Icon PUBLIC_ICON = new ImageIcon (Utilities.loadImage( 74 "org/netbeans/modules/java/navigation/resources/public.gif")); public static final Icon STATIC_ICON = new ImageIcon (Utilities.loadImage( 76 "org/netbeans/modules/java/navigation/resources/static.gif")); } 78 | Popular Tags |