return result;
}
private void showCustomDialog() throws SQLException
{
ITableInfo selectedTable = (ITableInfo) _info[0];
ITableInfo[] tables =
_session.getSchemaInfo().getITableInfos(selectedTable.getCatalogName(),
selectedTable.getSchemaName());
TableColumnInfo[] tableColumnInfos = _session.getMetaData().getColumnInfo(selectedTable);
_allTables = new HashMap<String, TableColumnInfo[]>();
for (ITableInfo table : tables)
{
TableColumnInfo[] columns = safeGetColumns(table);
if (table.getDatabaseObjectType() == DatabaseObjectType.TABLE
&& table != selectedTable
&& columns != null)
{
_allTables.put(table.getSimpleName(), columns);
}
}
customDialog = dialogFactory.createDialog(selectedTable.getSimpleName(), tableColumnInfos, _allTables);
customDialog.addExecuteListener(new ExecuteListener());
customDialog.addEditSQLListener(new EditSQLListener(customDialog));
customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));
customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());
customDialog.setVisible(true);