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 SessionScriptResources(BUNDLE_BASE_NAME, this);
ActionCollection coll = app.getActionCollection();
ViewSessionScriptsAction action = new ViewSessionScriptsAction(app, _resources, this);
coll.add(action);
app.addToMenu(IApplication.IMenuIDs.PLUGINS_MENU, action);
try
{
_cache = new AliasScriptCache(this);
} catch (IOException ex)
{
throw new PluginException(ex);
}
_cache.load();
}