public void execute() throws BaseException { try { _session.getSQLConnection().setCatalog(_catalog); } catch (SQLException ex) { throw new BaseException(ex); } } }
public void execute() throws BaseException { try { _session.getSQLConnection().setCatalog(_catalog); } catch (SQLException ex) { throw new BaseException(ex); } } }
/** * Ctor. * * @param app * Application API. * @throws IllegalArgumentException * Thrown if <TT>null</TT> <TT>IApplication</TT> passed. */ public HelpViewerWindow(IApplication app) throws IllegalArgumentException, BaseException { // i18n[HelpViewerWindow.title=SQuirreL SQL Client Help] super(s_stringMgr.getString("HelpViewerWindow.title")); if (app == null) { throw new IllegalArgumentException("IApplication == null"); } _app = app; try { createGUI(); } catch (IOException ex) { throw new BaseException(ex); } }
throw new BaseException(th); throw new BaseException("NonPlastic Theme passed in"); throw new BaseException(th);
/** * Ctor. * * @param app * Application API. * @throws IllegalArgumentException * Thrown if <TT>null</TT> <TT>IApplication</TT> passed. */ public HelpViewerWindow(IApplication app) throws IllegalArgumentException, BaseException { // i18n[HelpViewerWindow.title=SQuirreL SQL Client Help] super(s_stringMgr.getString("HelpViewerWindow.title")); if (app == null) { throw new IllegalArgumentException("IApplication == null"); } _app = app; try { createGUI(); } catch (IOException ex) { throw new BaseException(ex); } }
/** * Display the Dialog */ public void execute() throws BaseException { try { URL url = _file.toURI().toURL(); FileViewerFactory factory = FileViewerFactory.getInstance(); HtmlViewerSheet viewer = factory.getViewer(_app.getMainFrame(), url); viewer.setVisible(true); viewer.toFront(); viewer.requestFocus(); } catch (IOException ex) { final String msg = s_stringMgr.getString("ViewFileCommand.error.reading" + _file.getAbsolutePath()); s_log.error(msg, ex); throw new BaseException(ex); } } }
/** * Load the default drivers into the cache and then * make sure that the drivers list is showing all * drivers. */ public void execute() throws BaseException { try { final DataCache cache = _app.getDataCache(); cache.loadDefaultDrivers(_url); new ShowLoadedDriversOnlyCommand(_app, false).execute(); } catch (IOException ex) { throw new BaseException(ex); } } }
/** * Load the default drivers into the cache and then * make sure that the drivers list is showing all * drivers. */ public void execute() throws BaseException { try { final DataCache cache = _app.getDataCache(); cache.loadDefaultDrivers(_url); new ShowLoadedDriversOnlyCommand(_app, false).execute(); } catch (IOException ex) { throw new BaseException(ex); } } }
/** * Display the Dialog */ public void execute() throws BaseException { try { URL url = _file.toURI().toURL(); FileViewerFactory factory = FileViewerFactory.getInstance(); HtmlViewerSheet viewer = factory.getViewer(_app.getMainFrame(), url); viewer.setVisible(true); viewer.toFront(); viewer.requestFocus(); } catch (IOException ex) { final String msg = s_stringMgr.getString("ViewFileCommand.error.reading" + _file.getAbsolutePath()); s_log.error(msg, ex); throw new BaseException(ex); } } }
public void execute() throws BaseException { try { // Open connection to the webservice. WebServiceSession wss = new WebServiceSession(_prefs,_wsSessionProps); wss.open(); final WebServiceValidator val = new WebServiceValidator(wss, _wsSessionProps); final IQueryTokenizer qt = _session.getQueryTokenizer(); qt.setScriptToTokenize(_sql); final StringBuffer results = new StringBuffer(1024); while (qt.hasQuery()) { // TODO: When message are can have some text in red (error) // and some normal then put out errors in red. ValidatorResult rc = val.validate(qt.nextQuery()); results.append(rc.getData()); } _results = results.toString().trim(); } catch (Throwable th) { throw new BaseException(th); } } }
throw new BaseException(ex);
/** * Disconnect from the web service. */ public void execute() throws BaseException { try { final WebServiceSession wss = _sessionProps.getWebServiceSession(); if (wss.isOpen()) { wss.close(); // i18n[sqlval.disconnected=Disconnected from the SQL Validation web service] _session.showMessage(s_stringMgr.getString("sqlval.disconnected")); } } catch (Throwable th) { throw new BaseException(th); } } }
/** * Connect to the web service. */ public void execute() throws BaseException { try { final WebServiceSession wss = _sessionProps.getWebServiceSession(); if (!wss.isOpen()) { wss.open(); // i18n[sqlval.connected=Connected to the SQL Validation web service] _session.showMessage(s_stringMgr.getString("sqlval.connected")); } } catch (Throwable th) { throw new BaseException(th); } } }