|
|
@ -442,6 +442,17 @@ public abstract class BasicTableDataTreePane extends DockingView implements Resp |
|
|
|
if (selectedNO != null) { |
|
|
|
if (selectedNO != null) { |
|
|
|
data = selectedNO.getObject(); |
|
|
|
data = selectedNO.getObject(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
preview((TableDataWrapper) data, BasicTableDataTreePane.this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 预览数据集 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param data TableDataWrapper |
|
|
|
|
|
|
|
* @param c 底层面板 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static void preview(TableDataWrapper data, Component c) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (((TableDataWrapper) Objects.requireNonNull(data)).getTableData() instanceof MultiResultTableData) { |
|
|
|
if (((TableDataWrapper) Objects.requireNonNull(data)).getTableData() instanceof MultiResultTableData) { |
|
|
|
((MultiResultTableData<?>) (((TableDataWrapper) data).getTableData())).resetDataModelList(); |
|
|
|
((MultiResultTableData<?>) (((TableDataWrapper) data).getTableData())).resetDataModelList(); |
|
|
@ -459,7 +470,7 @@ public abstract class BasicTableDataTreePane extends DockingView implements Resp |
|
|
|
if (TableDataAuthHelper.needCheckAuthWhenEdit(wrapper.getTableData())) { |
|
|
|
if (TableDataAuthHelper.needCheckAuthWhenEdit(wrapper.getTableData())) { |
|
|
|
// 先打开一个Loading面板
|
|
|
|
// 先打开一个Loading面板
|
|
|
|
TableDataLoadingPane loadingPane = new TableDataLoadingPane(); |
|
|
|
TableDataLoadingPane loadingPane = new TableDataLoadingPane(); |
|
|
|
BasicDialog loadingDialog = loadingPane.showLargeWindow(SwingUtilities.getWindowAncestor(BasicTableDataTreePane.this), null); |
|
|
|
BasicDialog loadingDialog = loadingPane.showLargeWindow(SwingUtilities.getWindowAncestor(c), null); |
|
|
|
// 查询权限
|
|
|
|
// 查询权限
|
|
|
|
new SwingWorker<Boolean, Void>() { |
|
|
|
new SwingWorker<Boolean, Void>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -499,8 +510,6 @@ public abstract class BasicTableDataTreePane extends DockingView implements Resp |
|
|
|
} catch (Exception ex) { |
|
|
|
} catch (Exception ex) { |
|
|
|
FineLoggerFactory.getLogger().error(ex.getMessage(), ex); |
|
|
|
FineLoggerFactory.getLogger().error(ex.getMessage(), ex); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected class ConnectionTableAction extends com.fr.design.actions.server.ConnectionListAction { |
|
|
|
protected class ConnectionTableAction extends com.fr.design.actions.server.ConnectionListAction { |
|
|
|