|
|
@ -385,6 +385,10 @@ public class TableDataTreePane extends BasicTableDataTreePane { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void dgEdit(final AbstractTableDataPane<?> tableDataPane, String originalName, boolean isUpdate) { |
|
|
|
public void dgEdit(final AbstractTableDataPane<?> tableDataPane, String originalName, boolean isUpdate) { |
|
|
|
|
|
|
|
// 编辑时如果正在搜索,跳回原树
|
|
|
|
|
|
|
|
if (TableDataTreeSearchManager.getInstance().isInSearchMode()) { |
|
|
|
|
|
|
|
TableDataTreeSearchManager.getInstance().outOfSearchMode(); |
|
|
|
|
|
|
|
} |
|
|
|
tableDataPane.addStoreProcedureWorkerListener(new StoreProcedureWorkerListener() { |
|
|
|
tableDataPane.addStoreProcedureWorkerListener(new StoreProcedureWorkerListener() { |
|
|
|
public void fireDoneAction() { |
|
|
|
public void fireDoneAction() { |
|
|
|
if (tableDataTree.getSelectionPath() == null) { |
|
|
|
if (tableDataTree.getSelectionPath() == null) { |
|
|
@ -1031,6 +1035,10 @@ public class TableDataTreePane extends BasicTableDataTreePane { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void doOk() { |
|
|
|
public void doOk() { |
|
|
|
Object[] selectedValues = checkBoxList.getSelectedValues(); |
|
|
|
Object[] selectedValues = checkBoxList.getSelectedValues(); |
|
|
|
|
|
|
|
// 删除时如果正在搜索,跳回原树
|
|
|
|
|
|
|
|
if (TableDataTreeSearchManager.getInstance().isInSearchMode()) { |
|
|
|
|
|
|
|
TableDataTreeSearchManager.getInstance().outOfSearchMode(); |
|
|
|
|
|
|
|
} |
|
|
|
for (Object toRemove : selectedValues) { |
|
|
|
for (Object toRemove : selectedValues) { |
|
|
|
doRemove((NameObject) toRemove); |
|
|
|
doRemove((NameObject) toRemove); |
|
|
|
} |
|
|
|
} |
|
|
@ -1092,6 +1100,10 @@ public class TableDataTreePane extends BasicTableDataTreePane { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
|
|
|
// 粘贴时如果正在搜索,跳回原树
|
|
|
|
|
|
|
|
if (TableDataTreeSearchManager.getInstance().isInSearchMode()) { |
|
|
|
|
|
|
|
TableDataTreeSearchManager.getInstance().outOfSearchMode(); |
|
|
|
|
|
|
|
} |
|
|
|
Map<String, AbstractTableDataWrapper> dataWrapperMap = TableDataTreeClipboard.getInstance().takeFromClip(); |
|
|
|
Map<String, AbstractTableDataWrapper> dataWrapperMap = TableDataTreeClipboard.getInstance().takeFromClip(); |
|
|
|
for (Map.Entry<String, AbstractTableDataWrapper> dataWrapperEntry : dataWrapperMap.entrySet()) { |
|
|
|
for (Map.Entry<String, AbstractTableDataWrapper> dataWrapperEntry : dataWrapperMap.entrySet()) { |
|
|
|
// 处理数据集名称
|
|
|
|
// 处理数据集名称
|
|
|
|