|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
net.sourceforge.squirrel_sql.client.plugin.DefaultSessionPlugin
net.sourceforge.squirrel_sql.plugins.sqlbookmark.SQLBookmarkPlugin
public class SQLBookmarkPlugin
Main entry into the SQL Bookmark plugin.
This plugin allows you to maintain a set of frequently used SQL scripts for easy playback. There is also a parameter replacement syntax available for the SQL files.
| Field Summary | |
|---|---|
static String |
RESOURCE_PATH
|
| Fields inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin |
|---|
_app |
| Constructor Summary | |
|---|---|
SQLBookmarkPlugin()
|
|
| Method Summary | |
|---|---|
protected void |
addBookmarkItem(Bookmark bookmark)
Add new bookmark to Sessions->Bookmark menu |
void |
addSQLPanelAPIListeningForBookmarks(ISQLPanelAPI sqlApi)
|
boolean |
allowsSessionStartedInBackground()
|
String |
getAuthor()
Returns the authors name. |
String |
getChangeLogFileName()
Returns the name of the change log for the plugin. |
String |
getContributors()
|
String |
getDescriptiveName()
Return the descriptive name of this plugin. |
Object |
getExternalService()
|
IGlobalPreferencesPanel[] |
getGlobalPreferencePanels()
Create and return a preferences object. |
String |
getHelpFileName()
Returns the name of the Help file for the plugin. |
String |
getInternalName()
Return the internal name of this plugin. |
String |
getLicenceFileName()
Returns the name of the Help file for the plugin. |
protected PluginResources |
getResources()
Return the plugin resources. |
protected String |
getResourceString(String name)
Get and return a string from the plugin resources. |
ISQLPanelAPI[] |
getSQLPanelAPIsListeningForBookmarks()
|
String |
getVersion()
Returns the plugin version. |
void |
initialize()
Initialize this plugin. |
protected void |
rebuildMenu()
Rebuild the Sessions->Bookmarks menu |
void |
removeALLSQLPanelsAPIListeningForBookmarks()
|
void |
removeSQLPanelAPIListeningForBookmarks(ISQLPanelAPI sqlApi)
|
PluginSessionCallback |
sessionStarted(ISession session)
|
protected void |
setBookmarkManager(BookmarkManager bookmarks)
Set the bookmark manager. |
| Methods inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultSessionPlugin |
|---|
getDefaultNodeExpander, getObjectTypes, getSessionPropertiesPanels, isPluginSession, registerSessionMenu, sessionCreated, sessionEnding |
| Methods inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin |
|---|
aliasCopied, aliasRemoved, getAliasPropertiesPanelControllers, getApplication, getNewSessionPropertiesPanels, getPluginAppSettingsFolder, getPluginJarFilePath, getPluginUserSettingsFolder, getWebSite, load, unload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sourceforge.squirrel_sql.client.plugin.IPlugin |
|---|
aliasCopied, aliasRemoved, getAliasPropertiesPanelControllers, getNewSessionPropertiesPanels, getPluginAppSettingsFolder, getPluginJarFilePath, getPluginUserSettingsFolder, getWebSite, load, unload |
| Field Detail |
|---|
public static final String RESOURCE_PATH
| Constructor Detail |
|---|
public SQLBookmarkPlugin()
| Method Detail |
|---|
public String getVersion()
public String getAuthor()
public String getContributors()
getContributors in interface IPlugingetContributors in class DefaultPluginpublic String getInternalName()
public String getDescriptiveName()
public String getHelpFileName()
getHelpFileName in interface IPlugingetHelpFileName in class DefaultPluginpublic String getLicenceFileName()
getLicenceFileName in interface IPlugingetLicenceFileName in class DefaultPluginpublic String getChangeLogFileName()
getChangeLogFileName in interface IPlugingetChangeLogFileName in class DefaultPluginprotected PluginResources getResources()
protected String getResourceString(String name)
name - name of the resource string to return.
protected void setBookmarkManager(BookmarkManager bookmarks)
bookmarks - new manager to register.public Object getExternalService()
getExternalService in interface IPlugingetExternalService in class DefaultPlugin
public void initialize()
throws PluginException
initialize in interface IPlugininitialize in class DefaultPluginPluginExceptionpublic boolean allowsSessionStartedInBackground()
allowsSessionStartedInBackground in interface ISessionPluginallowsSessionStartedInBackground in class DefaultSessionPluginpublic PluginSessionCallback sessionStarted(ISession session)
protected void rebuildMenu()
protected void addBookmarkItem(Bookmark bookmark)
bookmark - the bookmark to add.public IGlobalPreferencesPanel[] getGlobalPreferencePanels()
getGlobalPreferencePanels in interface IPlugingetGlobalPreferencePanels in class DefaultPluginpublic void addSQLPanelAPIListeningForBookmarks(ISQLPanelAPI sqlApi)
public void removeSQLPanelAPIListeningForBookmarks(ISQLPanelAPI sqlApi)
public void removeALLSQLPanelsAPIListeningForBookmarks()
public ISQLPanelAPI[] getSQLPanelAPIsListeningForBookmarks()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||