getActiveSessionWindow() Hint for plugins:
When ISessionPlugin.sessionStarted is called the active session window is
always the SessionInternalFrame which provides an SQLPanelAPI.
getObjectTreeAPIOfActiveSessionWindow() Hint for plugins:
When ISessionPlugin.sessionStarted is called the active session window is
always the SessionInternalFrame which provides an SQLPanelAPI.
getSQLPanelAPIOfActiveSessionWindow() Hint for plugins:
When ISessionPlugin.sessionStarted is called the active session window is
always the SessionInternalFrame which provides an SQLPanelAPI.
Add a tab to the main tabbed panel.
Parameters: tab - The tab to be added. the index of the new tab that was added. throws: IllegalArgumentException - Thrown if a nullIMainPanelTab passed.
Close this session.
throws: SQLException - Thrown if an error closing the SQL connection. The sessionwill still be closed even though the connection may not havebeen.
Determine from the session whether or not it is ok to close it. It might
be the case that the session's SQLPanel has unsaved edits that require
the user's approval to discard.
true if it's ok to close the session; false otherwise.
Facade method for ExceptionFormatter to allow callers to safely get a
formatted exception without forcing them to wrap it in a try/catch block
Parameters: t - the exception to format the context of the exception, in default or custom format, depending on whether or not a custom ExceptionFormatter was installed.
Hint for plugins:
When ISessionPlugin.sessionStarted is called the active session window is
always the SessionInternalFrame which provides an SQLPanelAPI. This might help to simplyfy
the code in the sessionStarted() method of a plugin.
Hint for plugins:
When ISessionPlugin.sessionStarted is called the active session window is
always the SessionInternalFrame which provides an SQLPanelAPI. This might help to simplyfy
the code in the sessionStarted() method of a plugin.
throws: IllegalStateException - if ActiveSessionWindow doesn't provide an IObjectTreeAPIfor example if it is an SQLInternalFrame
The code in any SQLEditor is parsed in the background. You may attach a listener to the ParserEventsProcessor
to get to know about the results of parsing. The events are passed synchron with the event queue
(via SwingUtils.invokeLater()). At the moment events are produced for errors in the SQLScript
which are highlighted in the syntax plugin and for aliases of table names which are used in the
code completion plugin.
If you want the ParserEventsProcessor to produce further events feel free to contact gerdwagner@users.sourceforge.net.
Returns the IQueryTokenizer implementation to use for tokenizing scripts
statements that should be sent to the server.
an implementation of IQueryTokenizer
Hint for plugins:
When ISessionPlugin.sessionStarted is called the active session window is
always the SessionInternalFrame which provides an SQLPanelAPI. This might help to simplyfy
the code in the sessionStarted() method of a plugin.
throws: IllegalStateException - if ActiveSessionWindow doesn't provide an SQLPanelAPIfor example if it is an ObjectTreeInternalFrame
Select a tab in the main tabbed pane.
Parameters: tabIndex - The tab to select. @see #IMainTabIndexes throws: IllegalArgumentException - Thrown if an invalid tabIndex passed.
Show an error message describing the passed exception. This will apply
any custom formatting if an ExceptionFormatter has been set.
Parameters: th - the exception to be shown
Show an error message. The implementation of IMessageHandler
may or may not treat this differently to showMessage(String).
Parameters: session - the session that generated the exception. Parameters: th - Exception.
Show a message describing the passed exception. This will apply
any custom formatting if an ExceptionFormatter has been set.
Parameters: th - the exception to be shown