Storyboard format

This commit is contained in:
Alexander Lobas
2014-04-11 16:30:52 +04:00
parent 42c1335f7b
commit b2282863ae
2 changed files with 5 additions and 1 deletions
@@ -170,6 +170,10 @@ public abstract class Property<T extends PropertiesContainer> {
@Nullable
public abstract PropertyEditor getEditor();
public boolean isEditable(@Nullable T component) {
return getEditor() != null;
}
//////////////////////////////////////////////////////////////////////////////////////////
//
// Javadoc
@@ -1057,7 +1057,7 @@ public abstract class PropertyTable extends JBTable {
}
public boolean isCellEditable(int row, int column) {
return column == 1 && myProperties.get(row).getEditor() != null;
return column == 1 && myProperties.get(row).isEditable(getCurrentComponent());
}
@Override