@NotNull
 public static Icon getEmptyIcon(boolean showVisibility) {
   RowIcon baseIcon = new RowIcon(2);
   baseIcon.setIcon(createEmptyIconLike(PlatformIcons.CLASS_ICON_PATH), 0);
   if (showVisibility) {
     baseIcon.setIcon(createEmptyIconLike(PlatformIcons.PUBLIC_ICON_PATH), 1);
   }
   return baseIcon;
 }
 @Override
 public Icon getIcon(int flags) {
   String access = CfmlPsiUtil.getPureAttributeValue(this, "access");
   if (access == null) {
     return METHOD_ICON;
   }
   access = access.toLowerCase();
   RowIcon baseIcon = new RowIcon(2);
   baseIcon.setIcon(METHOD_ICON, 0);
   if ("private".equals(access)) {
     baseIcon.setIcon(PRIVATE_ICON, 1);
   } else if ("package".equals(access)) {
     baseIcon.setIcon(PACKAGE_LOCAL_ICON, 1);
   } else if ("public".equals(access)) {
     baseIcon.setIcon(PUBLIC_ICON, 1);
   } else if ("remote".equals(access)) {
     baseIcon.setIcon(CFMLIcons.Remote_access, 1);
   }
   return baseIcon;
 }
Exemple #3
0
 private static RowIcon createRowIcon(Icon baseIcon, Icon visibilityIcon) {
   RowIcon rowIcon = new RowIcon(2);
   rowIcon.setIcon(baseIcon, 0);
   rowIcon.setIcon(visibilityIcon, 1);
   return rowIcon;
 }