/** * Returns all properties with <code>source</code> as source. A property * can belong to only one source. * @param source the source properties belong to * @return all properties in <code>source</code> */ public PreviewProperty[] getProperties(Object source) { List<PreviewProperty> props = new ArrayList<>(); for (PreviewProperty p : properties.values()) { if (p.getSource().equals(source)) { props.add(p); } } return props.toArray(new PreviewProperty[0]); }
Object source = property.getSource(); boolean propertyEnabled = true; if (source instanceof Renderer) {