net.sourceforge.squirrel_sql.plugins.postgres
Class PostgresPlugin

java.lang.Object
  extended by net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
      extended by net.sourceforge.squirrel_sql.client.plugin.DefaultSessionPlugin
          extended by net.sourceforge.squirrel_sql.plugins.postgres.PostgresPlugin
All Implemented Interfaces:
IPlugin, ISessionPlugin

public class PostgresPlugin
extends DefaultSessionPlugin

The main controller class for the Postgres plugin.

Author:
manningr

Field Summary
 
Fields inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
_app
 
Constructor Summary
PostgresPlugin()
           
 
Method Summary
 boolean allowsSessionStartedInBackground()
           
 String getAuthor()
          Returns the authors name.
 String getChangeLogFileName()
           
 String getContributors()
          Returns a comma separated list of other contributors.
 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.
 
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, getExternalService, getGlobalPreferencePanels, getNewSessionPropertiesPanels, getPluginAppSettingsFolder, getPluginJarFilePath, getPluginUserSettingsFolder, getWebSite, 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, getExternalService, getGlobalPreferencePanels, getNewSessionPropertiesPanels, getPluginAppSettingsFolder, getPluginJarFilePath, getPluginUserSettingsFolder, getWebSite, unload
 

Constructor Detail

PostgresPlugin

public PostgresPlugin()
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.

getContributors

public String getContributors()
Returns a comma separated list of other contributors.

Specified by:
getContributors in interface IPlugin
Overrides:
getContributors in class DefaultPlugin
Returns:
Contributors names.

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

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. Update the tree api in using the event thread

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
See Also:
DefaultSessionPlugin.isPluginSession(net.sourceforge.squirrel_sql.client.session.ISession)


Copyright © 2001-2010. All Rights Reserved.