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