mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Show modified expert properties
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user