public void start() { if (_app == null) { throw new IllegalStateException( "_app was null - cannot access the thread pool for asynchronous use"); } _app.getThreadPool().addTask(this); }
public void start() { if (_app == null) { throw new IllegalStateException( "_app was null - cannot access the thread pool for asynchronous use"); } _app.getThreadPool().addTask(this); }
/** * Start a thread to refrsh the log. */ private synchronized void startRefreshingLog() { if (!_refreshing) { _app.getThreadPool().addTask(new Refresher()); } }
/** * Start a thread to refrsh the log. */ private synchronized void startRefreshingLog() { if (!_refreshing) { _app.getThreadPool().addTask(new Refresher()); } }
SQLSchemaImpl(ISession session) { _session = session; if (_session != null) { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { ISQLConnection con = _session.getSQLConnection(); if (con != null) { _dmd = con.getSQLMetaData(); } } }); } }
SQLSchemaImpl(ISession session) { _session = session; if (_session != null) { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { ISQLConnection con = _session.getSQLConnection(); if (con != null) { _dmd = con.getSQLMetaData(); } } }); } }
private void showCustomDialog() { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { customDialog = new AddAutoIncrementDialog(columnToModify, SessionUtils.getOwningFrame(_session)); customDialog.addExecuteListener(new ExecuteListener()); customDialog.addEditSQLListener(new EditSQLListener(customDialog)); customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog)); customDialog.setLocationRelativeTo(SessionUtils.getOwningFrame(_session)); customDialog.setVisible(true); } }); }
protected void showCustomDialog() { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { customDialog = new DefaultDropDialog(_dropIndexInfo, DefaultDropDialog.DIALOG_TYPE_UNIQUE_CONSTRAINT_KEY, SessionUtils.getOwningFrame(_session)); customDialog.setCascadeVisible(false); customDialog.addExecuteListener(new ExecuteListener()); customDialog.addEditSQLListener(new EditSQLListener(customDialog)); customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog)); customDialog.setLocationRelativeTo(SessionUtils.getOwningFrame(_session)); customDialog.setVisible(true); } }); } }); }
protected void showCustomDialog() { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { customDialog = new DefaultDropDialog(_info, DefaultDropDialog.DIALOG_TYPE_SEQUENCE, SessionUtils.getOwningFrame(_session)); customDialog.addExecuteListener(new ExecuteListener()); customDialog.addEditSQLListener(new EditSQLListener(customDialog)); customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog)); customDialog.setLocationRelativeTo(SessionUtils.getOwningFrame(_session)); customDialog.setVisible(true); } }); } }); }
protected void showCustomDialog() { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { customDialog = new DefaultDropDialog(_dropIndexInfo, DefaultDropDialog.DIALOG_TYPE_INDEX, SessionUtils.getOwningFrame(_session)); customDialog.addExecuteListener(new ExecuteListener()); customDialog.addEditSQLListener(new EditSQLListener(customDialog)); customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog)); customDialog.setLocationRelativeTo(SessionUtils.getOwningFrame(_session)); customDialog.setVisible(true); } }); } }); }
public void scriptTablesToSQLEntryArea(final IDatabaseObjectInfo[] dbObjs) { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { final String script = dropTableScriptString(dbObjs); if (script != null) { GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { ISQLPanelAPI api = FrameWorkAcessor.getSQLPanelAPI( _session, _plugin); api.appendSQLScript(script, true); int tabIdx = ISession.IMainPanelTabIndexes.SQL_TAB; _session.selectMainTab(tabIdx); } }); } } }); }
public void scriptTablesToSQLEntryArea(final IDatabaseObjectInfo[] dbObjs) { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { final String script = createTableScriptString(dbObjs); if(null != script) { GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { ISQLPanelAPI api = FrameWorkAcessor.getSQLPanelAPI(_session, _plugin); api.appendSQLScript(script, true); _session.selectMainTab(ISession.IMainPanelTabIndexes.SQL_TAB); } }); } } }); }
public static void store(final ISession session, final SchemaInfoCache schemaInfoCache) { _storingSessionIDs.put(session.getIdentifier(), session.getIdentifier()); session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { privateStore(schemaInfoCache, session); } }); }
private void showCustomDialog() { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { customDialog = new RenameTableDialog(_info, RenameTableDialog.DIALOG_TYPE_VIEW, SessionUtils.getOwningFrame(_session)); customDialog.addExecuteListener(new ExecuteListener()); customDialog.addEditSQLListener(new EditSQLListener(customDialog)); customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog)); customDialog.setLocationRelativeTo(SessionUtils.getOwningFrame(_session)); customDialog.setVisible(true); } }); } }); } }
public void scriptSelectsToSQLEntryArea(final IDatabaseObjectInfo[] dbObjs) { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { final String script = createSelectScriptString(dbObjs); if (null != script) { GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { ISQLPanelAPI api = FrameWorkAcessor.getSQLPanelAPI(_session, _plugin); api.appendSQLScript(script, true); _session.selectMainTab(ISession.IMainPanelTabIndexes.SQL_TAB); } }); } } }); }
private void showCustomDialog() { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { customDialog = new DefaultDropDialog(_info, DefaultDropDialog.DIALOG_TYPE_VIEW, SessionUtils.getOwningFrame(_session)); customDialog.addExecuteListener(new ExecuteListener()); customDialog.addEditSQLListener(new EditSQLListener(customDialog)); customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog)); customDialog.setLocationRelativeTo(SessionUtils.getOwningFrame(_session)); customDialog.setVisible(true); } }); } }); }
private void showCustomDialog() { _session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { customDialog = new RenameTableDialog(_info, RenameTableDialog.DIALOG_TYPE_TABLE, SessionUtils.getOwningFrame(_session)); customDialog.addExecuteListener(new ExecuteListener()); customDialog.addEditSQLListener(new EditSQLListener(customDialog)); customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog)); customDialog.setLocationRelativeTo(SessionUtils.getOwningFrame(_session)); customDialog.setVisible(true); } }); } }); }
private void refreshSchemaInBackground() { final ISession session = getSession(); session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { session.getSchemaInfo().reloadAll(); expandTreeInForeground(); } }); }
private void refreshSchemaInBackground() { final ISession session = getSession(); session.getApplication().getThreadPool().addTask(new Runnable() { public void run() { session.getSchemaInfo().reloadAll(); expandTreeInForeground(); } }); }
_session.getApplication().getThreadPool().addTask(task);