org.firebirdsql.squirrel
Class FirebirdPlugin

java.lang.Object
  extended by net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
      extended by net.sourceforge.squirrel_sql.client.plugin.DefaultSessionPlugin
          extended by org.firebirdsql.squirrel.FirebirdPlugin
All Implemented Interfaces:
IPlugin, ISessionPlugin

public class FirebirdPlugin
extends DefaultSessionPlugin


Field Summary
 
Fields inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
_app
 
Constructor Summary
FirebirdPlugin()
           
 
Method Summary
 boolean allowsSessionStartedInBackground()
           
 String getAuthor()
          Returns the authors name.
 String getChangeLogFileName()
           
 String getDescriptiveName()
          Return the descriptive name of this plugin.
 String getHelpFileName()
           
 String getInternalName()
          Return the internal name of this plugin.
 String getLicenceFileName()
           
 String getVersion()
          Returns the current version of this plugin.
 void initialize()
          Initialize this plugin.
protected  boolean isPluginSession(ISession session)
           
 void load(IApplication app)
          Load this plugin.
 PluginSessionCallback sessionStarted(ISession session)
          Session has been started.
 void unload()
          Application is shutting down so save preferences.
 
Methods inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultSessionPlugin
getDefaultNodeExpander, getObjectTypes, getSessionPropertiesPanels, registerSessionMenu, sessionCreated, sessionEnding
 
Methods inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
aliasCopied, aliasRemoved, getAliasPropertiesPanelControllers, getApplication, getContributors, getExternalService, getGlobalPreferencePanels, getNewSessionPropertiesPanels, getPluginAppSettingsFolder, getPluginJarFilePath, getPluginUserSettingsFolder, getWebSite
 
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, getContributors, getExternalService, getGlobalPreferencePanels, getNewSessionPropertiesPanels, getPluginAppSettingsFolder, getPluginJarFilePath, getPluginUserSettingsFolder, getWebSite
 

Constructor Detail

FirebirdPlugin

public FirebirdPlugin()
Method Detail

getInternalName

public String getInternalName()
Return the internal name of this plugin.

Returns:
the internal name of this plugin.

getDescriptiveName

public String getDescriptiveName()
Return the descriptive name of this plugin.

Returns:
the descriptive name of this plugin.

getVersion

public String getVersion()
Returns the current version of this plugin.

Returns:
the current version of this plugin.

getAuthor

public String getAuthor()
Returns the authors name.

Returns:
the authors name.

getChangeLogFileName

public String getChangeLogFileName()
Specified by:
getChangeLogFileName in interface IPlugin
Overrides:
getChangeLogFileName in class DefaultPlugin
See Also:
IPlugin.getChangeLogFileName()

getHelpFileName

public String getHelpFileName()
Specified by:
getHelpFileName in interface IPlugin
Overrides:
getHelpFileName in class DefaultPlugin
See Also:
IPlugin.getHelpFileName()

getLicenceFileName

public String getLicenceFileName()
Specified by:
getLicenceFileName in interface IPlugin
Overrides:
getLicenceFileName in class DefaultPlugin
See Also:
IPlugin.getLicenceFileName()

load

public void load(IApplication app)
          throws PluginException
Load this plugin.

Specified by:
load in interface IPlugin
Overrides:
load in class DefaultPlugin
Parameters:
app - Application API.
Throws:
PluginException

initialize

public void initialize()
                throws PluginException
Initialize this plugin.

Specified by:
initialize in interface IPlugin
Overrides:
initialize in class DefaultPlugin
Throws:
PluginException

unload

public void unload()
Application is shutting down so save preferences.

Specified by:
unload in interface IPlugin
Overrides:
unload in class DefaultPlugin

allowsSessionStartedInBackground

public boolean allowsSessionStartedInBackground()
Specified by:
allowsSessionStartedInBackground in interface ISessionPlugin
Overrides:
allowsSessionStartedInBackground in class DefaultSessionPlugin

sessionStarted

public PluginSessionCallback sessionStarted(ISession session)
Session has been started. If this is an Oracle session then register an extra expander for the Schema nodes to show Oracle Packages.

Parameters:
session - Session that has started.
Returns:
true if session is Oracle in which case this plugin is interested in it.

isPluginSession

protected boolean isPluginSession(ISession session)
Overrides:
isPluginSession in class DefaultSessionPlugin


Copyright © 2001-2010. All Rights Reserved.