I've been very slack in letting you know what changes have been made to the
Squireel API so heres the quick story. More details are in the plugin doc
/squirrel-sql/doc/plugins.html
New application argument allows you to override the user settings directory.
E.G.
-settingsdir=c:\my-squirrel-settings
API in ISession to listen to events in the Result Tabs.
void addResultTabListener(IResultTabListener lis);
void removeResultTabListener(IResultTabListener lis);
IResultTabListener gives you:
void resultTabAdded(ResultTabEvent evt);
void resultTabRemoved(ResultTabEvent evt);
void resultTabTornOff(ResultTabEvent evt);
void tornOffResultTabReturned(ResultTabEvent evt); /** Not yet implemented*/
The beginnings of the sql results data model has started. You can get it
from ResultTab:
public IDataSetModel getResultSetDataModel();
IDataSetModel gives you ways of playing with the data in the model - lots
more to do.
ColumnDisplayDefinition[] getColumnDefinitions();
int getRowCount();
Object getValueAt(int rowIndex, int columnIndex);
void setValueAt(Object value, int rowIndex, int columnIndex);
void addListener(IDataSetModelListener lis);
void removeListener(IDataSetModelListener lis);
ISession has methods to allow a plugin to add tabs to different places
void addDatabasePanelTab(IDatabasePanelTab tab) throws
IllegalArgumentException;
void addTablePanelTab(ITablePanelTab tab) throws IllegalArgumentException;
void addProcedurePanelTab(IProcedurePanelTab tab) throws
IllegalArgumentException;
New API in ISessionPlugin to allow adding of tabs to the session properties
dialog:
ISessionPropertiesPanel[] getSessionPropertiesPanels();
Theres a new plugin - jedit - which uses the jEdit syntax control to give a
better text edit control for the SQL entry field.
Col
|