|
|
@ -214,6 +214,7 @@ public abstract class UIListControlPane extends UIControlPane { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void populate(Nameable[] nameableArray) { |
|
|
|
public void populate(Nameable[] nameableArray) { |
|
|
|
isPopulating = true; // 加一个标识位,避免切换单元格时,触发 saveSettings
|
|
|
|
isPopulating = true; // 加一个标识位,避免切换单元格时,触发 saveSettings
|
|
|
|
|
|
|
|
nameableList.getCellEditor().stopCellEditing(); |
|
|
|
DefaultListModel listModel = (DefaultListModel) this.nameableList.getModel(); |
|
|
|
DefaultListModel listModel = (DefaultListModel) this.nameableList.getModel(); |
|
|
|
listModel.removeAllElements(); |
|
|
|
listModel.removeAllElements(); |
|
|
|
if (ArrayUtils.isEmpty(nameableArray)) { |
|
|
|
if (ArrayUtils.isEmpty(nameableArray)) { |
|
|
@ -582,6 +583,7 @@ public abstract class UIListControlPane extends UIControlPane { |
|
|
|
UIListControlPane.this.nameableList.getCellEditor() |
|
|
|
UIListControlPane.this.nameableList.getCellEditor() |
|
|
|
.stopCellEditing(); |
|
|
|
.stopCellEditing(); |
|
|
|
} catch (Exception ignored) { |
|
|
|
} catch (Exception ignored) { |
|
|
|
|
|
|
|
// do nothing
|
|
|
|
} |
|
|
|
} |
|
|
|
// bug:在选中一个NameObject并删除,会遗留下Name.
|
|
|
|
// bug:在选中一个NameObject并删除,会遗留下Name.
|
|
|
|
doBeforeRemove(); |
|
|
|
doBeforeRemove(); |
|
|
|