private static RowIcon createPrivateFieldIcon(@NotNull Icon base) { RowIcon icon = new RowIcon(2); icon.setIcon(base, 0); icon.setIcon(PlatformIcons.PRIVATE_ICON, 1); return icon; } }
private static RowIcon createPublicFieldIcon(@NotNull Icon base) { RowIcon icon = new RowIcon(2); icon.setIcon(base, 0); icon.setIcon(PlatformIcons.PUBLIC_ICON, 1); return icon; }
/** * Returns the icon representing the object. * * @param unused Used to mean if open/close icons for tree renderer. No longer in use. The parameter is only there for API compatibility reason. */ @Nullable @Override public Icon getIcon(boolean unused) { RowIcon rowIcon = new RowIcon(2); rowIcon.setIcon(Icons.MODULE, 0); rowIcon.setIcon(PlatformIcons.ANONYMOUS_CLASS_ICON, 1); return rowIcon; }
/** * Returns the icon representing the object. * * @param unused Used to mean if open/close icons for tree renderer. No longer in use. The parameter is only there for API compatibility reason. */ @Nullable @Override public Icon getIcon(boolean unused) { RowIcon rowIcon = new RowIcon(2); rowIcon.setIcon(Icons.Time.COMPILE, 0); rowIcon.setIcon(PlatformIcons.ANONYMOUS_CLASS_ICON, 1); return rowIcon; }
/** * Returns the icon representing the object. * * @param unused Used to mean if open/close icons for tree renderer. No longer in use. The parameter is only there for API compatibility reason. */ @NotNull @Override public Icon getIcon(boolean unused) { Icon[] icons = new Icon[]{ Icons.Time.COMPILE, Icons.Visibility.from(visibility), Icons.TYPE }; RowIcon rowIcon = new RowIcon(icons.length); for (int layer = 0; layer < icons.length; layer++) { rowIcon.setIcon(icons[layer], layer); } return rowIcon; }
/** * Returns the icon representing the object. * * @param unused Used to mean if open/close icons for tree renderer. No longer in use. The parameter is only there for API compatibility reason. */ @Nullable @Override public Icon getIcon(boolean unused) { RowIcon rowIcon = new RowIcon(3); // same as {@code def} rowIcon.setIcon(Icons.Time.RUN, 0); rowIcon.setIcon(Icons.Visibility.PUBLIC, 1); rowIcon.setIcon(Icons.CALL_DEFINITION_CLAUSE, 2); return rowIcon; }
/** * Returns the icon representing the object. * * @param unused Used to mean if open/close icons for tree renderer. No longer in use. The parameter is only there for API compatibility reason. */ @Nullable @Override public Icon getIcon(boolean unused) { Icon[] icons = new Icon[]{ Icons.Time.from(callDefinition.time()), Icons.Visibility.from(visibility), Icons.CALL_DEFINITION_CLAUSE }; RowIcon rowIcon = new RowIcon(icons.length); for (int layer = 0; layer < icons.length; layer++) { rowIcon.setIcon(icons[layer], layer); } return rowIcon; }
/** * Returns the icon representing the object. * * @param unused Used to mean if open/close icons for tree renderer. No longer in use. The parameter is only there for API compatibility reason. */ @Nullable @Override public Icon getIcon(boolean unused) { int layers = 3; if (callback) { layers++; } RowIcon rowIcon = new RowIcon(layers); int layer = 0; if (callback) { rowIcon.setIcon(Icons.CALLBACK, layer++); } Icon timeIcon = Icons.Time.from(time); rowIcon.setIcon(timeIcon, layer++); rowIcon.setIcon(Icons.Visibility.PUBLIC, layer++); rowIcon.setIcon(Icons.SPECIFICATION, layer); return rowIcon; }
RowIcon rowIcon = new RowIcon(layers);
@Override public Icon getIcon(boolean open) { RowIcon icon = new RowIcon(2); icon.setIcon(SoyIcons.TEMPLATE, 0); icon.setIcon(isPrivate() ? PlatformIcons.PRIVATE_ICON : PlatformIcons.PUBLIC_ICON, 1); return icon; }
@Override public Icon getIcon(int flags) { if (this instanceof BnfRule) { final Icon base = hasModifier((BnfRule)this, "external") ? BnfIcons.EXTERNAL_RULE : BnfIcons.RULE; final Icon visibility = hasModifier((BnfRule)this, "private") ? PlatformIcons.PRIVATE_ICON : PlatformIcons.PUBLIC_ICON; final RowIcon row = new RowIcon(2); row.setIcon(base, 0); row.setIcon(visibility, 1); return row; } else if (this instanceof BnfAttr) { return BnfIcons.ATTRIBUTE; } return super.getIcon(flags); }