* Initialize this plugin.
*/
public synchronized void initialize() throws PluginException
{
super.initialize();
IApplication app = getApplication();
// Folder within plugins folder that belongs to this
// plugin.
try
{
_pluginAppFolder = getPluginAppSettingsFolder();
}
catch (IOException ex)
{
throw new PluginException(ex);
}
// Folder to store user settings.
try
{
_userSettingsFolder = getPluginUserSettingsFolder();
}
catch (IOException ex)
{
throw new PluginException(ex);
}
_resources = new CachePluginResources("de.ixdb.squirrel_sql.plugins.cache.cache", this);
// Load plugin preferences.
ActionCollection coll = app.getActionCollection();
coll.add(new ScriptViewAction(app, _resources, this));
coll.add(new ScriptFunctionAction(app, _resources, this));
coll.add(new ScriptCdlAction(app, _resources, this));
coll.add(new ShowNamespacesAction(app, _resources, this));
coll.add(new ShowQueryPlanAction(app, _resources, this));