TableColumnInfo[] tableColumnInfos = md.getColumnInfo(selectedTable);
ForeignKeyInfo[] exportedKeys = md.getExportedKeysInfo(selectedTable);
ForeignKeyInfo[] importedKeys = md.getImportedKeysInfo(selectedTable);
_customDialog =
new AddLookupTableDialog(selectedTable.getSimpleName(), getColumnNames(tableColumnInfos,
exportedKeys,
importedKeys));
_customDialog.addExecuteListener(new ExecuteListener());
_customDialog.addEditSQLListener(new EditSQLListener(_customDialog));
_customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, _customDialog));