mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Support segue's
This commit is contained in:
@@ -120,6 +120,10 @@ public abstract class Property<T extends PropertiesContainer> {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean closeEditorDuringRefresh() {
|
||||
return false;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Presentation
|
||||
|
||||
@@ -848,7 +848,7 @@ public abstract class PropertyTable extends JBTable {
|
||||
|
||||
if (isSetValue) {
|
||||
if (property.needRefreshPropertyList() || needRefresh[0]) {
|
||||
update(myContainers, null, false);
|
||||
update(myContainers, null, property.closeEditorDuringRefresh());
|
||||
}
|
||||
else {
|
||||
myModel.fireTableRowsUpdated(row, row);
|
||||
@@ -1113,7 +1113,7 @@ public abstract class PropertyTable extends JBTable {
|
||||
}
|
||||
|
||||
if (setValueAtRow(editingRow, value)) {
|
||||
if (!continueEditing) {
|
||||
if (!continueEditing && editingRow != -1) {
|
||||
PropertyEditor editor = myProperties.get(editingRow).getEditor();
|
||||
editor.removePropertyEditorListener(myPropertyEditorListener);
|
||||
removeEditor();
|
||||
|
||||
Reference in New Issue
Block a user