net.sourceforge.squirrel_sql.plugins.dbdiff
Class DBDiffPlugin

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.dbdiff.DBDiffPlugin
All Implemented Interfaces:
IPlugin, ISessionPlugin, SessionInfoProvider

public class DBDiffPlugin
extends DefaultSessionPlugin
implements SessionInfoProvider

The class that sets up the various resources required by SQuirreL to implement a plugin. This plugin implements the ability to diff tables and various other table-related objects from one database to another.


Field Summary
static String BUNDLE_BASE_NAME
           
 
Fields inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
_app, applicationFiles, fileWrapperFactory
 
Constructor Summary
DBDiffPlugin()
           
 
Method Summary
protected  void addMenuItemsToContextMenu(ISession session)
           
 String getAuthor()
           
 String getChangeLogFileName()
          Returns the name of the change log for the plugin.
 String getContributors()
           
 String getDescriptiveName()
           
 IDatabaseObjectInfo[] getDestSelectedDatabaseObjects()
           
 ISession getDestSession()
           
 IGlobalPreferencesPanel[] getGlobalPreferencePanels()
          Create panel for the Global Properties dialog.
 String getHelpFileName()
          Returns the name of the Help file for the plugin.
 String getInternalName()
           
 String getLicenceFileName()
           
 IScriptFileManager getScriptFileManager()
           
 IDatabaseObjectInfo[] getSourceSelectedDatabaseObjects()
           
 ISession getSourceSession()
           
 String getVersion()
           
 void initialize()
           
 PluginSessionCallback sessionStarted(ISession session)
           
 void setCompareMenuEnabled(boolean enabled)
           
 void setDestSelectedDatabaseObjects(IDatabaseObjectInfo[] infos)
           
 void setDestSession(ISession session)
           
 void setPluginPreferencesManager(IPluginPreferencesManager pluginPreferencesManager)
           
 void setScriptFileManager(IScriptFileManager scriptFileManager)
           
 void setSelectedDatabaseObjects(IDatabaseObjectInfo[] dbObjArr)
           
 void setSourceSelectedDatabaseObjects(IDatabaseObjectInfo[] infos)
           
 void setSourceSession(ISession session)
           
 void unload()
           
 
Methods inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultSessionPlugin
allowsSessionStartedInBackground, getDefaultNodeExpander, getObjectTypes, getSessionPropertiesPanels, isPluginSession, registerSessionMenu, sessionCreated, sessionEnding
 
Methods inherited from class net.sourceforge.squirrel_sql.client.plugin.DefaultPlugin
aliasCopied, aliasRemoved, getAliasPropertiesPanelControllers, getApplication, getExternalService, getNewSessionPropertiesPanels, getPluginAppSettingsFolder, getPluginJarFilePath, getPluginUserSettingsFolder, getWebSite, load, setApplicationFiles, setFileWrapperFactory
 
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, getNewSessionPropertiesPanels, getPluginAppSettingsFolder, getPluginJarFilePath, getPluginUserSettingsFolder, getWebSite, load, setApplicationFiles, setFileWrapperFactory
 

Field Detail

BUNDLE_BASE_NAME

public static final String BUNDLE_BASE_NAME
See Also:
Constant Field Values
Constructor Detail

DBDiffPlugin

public DBDiffPlugin()
Method Detail

sessionStarted

public PluginSessionCallback sessionStarted(ISession session)
Specified by:
sessionStarted in interface ISessionPlugin
See Also:
sessionStarted(net.sourceforge.squirrel_sql.client.session.ISession)

getInternalName

public String getInternalName()
Specified by:
getInternalName in interface IPlugin
See Also:
IPlugin.getInternalName()

getDescriptiveName

public String getDescriptiveName()
Specified by:
getDescriptiveName in interface IPlugin
See Also:
IPlugin.getDescriptiveName()

getAuthor

public String getAuthor()
Specified by:
getAuthor in interface IPlugin
See Also:
IPlugin.getAuthor()

getContributors

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

getVersion

public String getVersion()
Specified by:
getVersion in interface IPlugin
See Also:
IPlugin.getVersion()

getHelpFileName

public String getHelpFileName()
Returns the name of the Help file for the plugin. This should be a text or HTML file residing in the getPluginAppSettingsFolder directory.

Specified by:
getHelpFileName in interface IPlugin
Overrides:
getHelpFileName in class DefaultPlugin
Returns:
the Help file name or null if plugin doesn't have a help file.

getChangeLogFileName

public String getChangeLogFileName()
Returns the name of the change log for the plugin. This should be a text or HTML file residing in the getPluginAppSettingsFolder directory.

Specified by:
getChangeLogFileName in interface IPlugin
Overrides:
getChangeLogFileName in class DefaultPlugin
Returns:
the changelog file name or null if plugin doesn't have a change log.

getLicenceFileName

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

initialize

public void initialize()
                throws PluginException
Specified by:
initialize in interface IPlugin
Overrides:
initialize in class DefaultPlugin
Throws:
PluginException

getGlobalPreferencePanels

public IGlobalPreferencesPanel[] getGlobalPreferencePanels()
Create panel for the Global Properties dialog.

Specified by:
getGlobalPreferencePanels in interface IPlugin
Overrides:
getGlobalPreferencePanels in class DefaultPlugin
Returns:
properties panel.

unload

public void unload()
Specified by:
unload in interface IPlugin
Overrides:
unload in class DefaultPlugin

setSelectedDatabaseObjects

public void setSelectedDatabaseObjects(IDatabaseObjectInfo[] dbObjArr)
Parameters:
selectedSourceDatabaseObjects - The selectedDatabaseObjects to set.

addMenuItemsToContextMenu

protected void addMenuItemsToContextMenu(ISession session)
Parameters:
coll -
api -

setCompareMenuEnabled

public void setCompareMenuEnabled(boolean enabled)

getSourceSession

public ISession getSourceSession()
Specified by:
getSourceSession in interface SessionInfoProvider
See Also:
SessionInfoProvider.getSourceSession()

setSourceSession

public void setSourceSession(ISession session)
Specified by:
setSourceSession in interface SessionInfoProvider
See Also:
setSourceSession(net.sourceforge.squirrel_sql.client.session.ISession)

getSourceSelectedDatabaseObjects

public IDatabaseObjectInfo[] getSourceSelectedDatabaseObjects()
Specified by:
getSourceSelectedDatabaseObjects in interface SessionInfoProvider
See Also:
SessionInfoProvider.getSourceSelectedDatabaseObjects()

getDestSession

public ISession getDestSession()
Specified by:
getDestSession in interface SessionInfoProvider
See Also:
SessionInfoProvider.getDestSession()

setDestSession

public void setDestSession(ISession session)
Specified by:
setDestSession in interface SessionInfoProvider
See Also:
setDestSession(net.sourceforge.squirrel_sql.client.session.ISession)

getDestSelectedDatabaseObjects

public IDatabaseObjectInfo[] getDestSelectedDatabaseObjects()
Specified by:
getDestSelectedDatabaseObjects in interface SessionInfoProvider
See Also:
SessionInfoProvider.getDestSelectedDatabaseObjects()

setDestSelectedDatabaseObjects

public void setDestSelectedDatabaseObjects(IDatabaseObjectInfo[] infos)
Specified by:
setDestSelectedDatabaseObjects in interface SessionInfoProvider
See Also:
setDestSelectedDatabaseObjects(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[])

setSourceSelectedDatabaseObjects

public void setSourceSelectedDatabaseObjects(IDatabaseObjectInfo[] infos)
Specified by:
setSourceSelectedDatabaseObjects in interface SessionInfoProvider

setPluginPreferencesManager

public void setPluginPreferencesManager(IPluginPreferencesManager pluginPreferencesManager)
Parameters:
pluginPreferencesManager - the pluginPreferencesManager to set

setScriptFileManager

public void setScriptFileManager(IScriptFileManager scriptFileManager)
Parameters:
scriptFileManager - the scriptFileManager to set

getScriptFileManager

public IScriptFileManager getScriptFileManager()
Specified by:
getScriptFileManager in interface SessionInfoProvider
Returns:
the scriptFileManager


Copyright © 2001-2012. All Rights Reserved.