GUIUtils.processOnSwingEventThread(new Runnable()
{
public void run()
{
customDialog =
new AddForeignKeyDialog(selectedTable.getSimpleName(),
localColumns.toArray(new String[] {}),
allTables);
customDialog.addExecuteListener(new ExecuteListener());
customDialog.addEditSQLListener(new EditSQLListener(customDialog));
customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));