Show modified expert properties

This commit is contained in:
Alexander Lobas
2012-08-06 16:53:45 +04:00
parent d1fa5075a8
commit 98e3b5c30a
@@ -429,20 +429,27 @@ public abstract class PropertyTable extends JBTable {
private void fillProperties(PropertiesContainer<?> component, List<Property> properties) {
for (Property property : component.getProperties()) {
addProperty(property, properties);
addProperty(component, property, properties);
}
}
private void addProperty(Property property, List<Property> properties) {
private void addProperty(PropertiesContainer<?> component, Property property, List<Property> properties) {
if (property.isExpert() && !myShowExpertProperties) {
return;
try {
if (property.isDefaultValue(component)) {
return;
}
}
catch (Throwable e) {
return;
}
}
properties.add(property);
if (isExpanded(property)) {
for (Property child : getChildren(property)) {
addProperty(child, properties);
addProperty(component, child, properties);
}
}
}