public class ExtensionCompare extends ExtensionAdaptor implements SessionChangedListener, SessionListener
Constructor and Description |
---|
ExtensionCompare() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthor()
Gets the author of the extension.
|
String |
getDescription()
Returns the description of the extension, to be shown in UI components.
|
String |
getUIName()
By default returns the name returned by
getName() . |
void |
hook(ExtensionHook extensionHook)
Called during extension's initialisation to allow to add new functionality to core
components.
|
void |
sessionAboutToChange(Session session)
Called just prior to the session changing.
|
void |
sessionChanged(Session session)
Called just after the session has changed.
|
void |
sessionModeChanged(Control.Mode mode)
Called when the user changes the mode.
|
void |
sessionOpened(File file,
Exception e)
Callback method when a session was opened.
|
void |
sessionSaved(Exception e)
Callback method when a session was saved.
|
void |
sessionScopeChanged(Session session)
Called when the user has changes the session scope.
|
void |
sessionSnapshot(Exception e)
Callback method when a session snapshot is completed.
|
canUnload, databaseOpen, destroy, getActiveActions, getAddOn, getDependencies, getExtensionMenu, getExtensionView, getI18nPrefix, getMessages, getModel, getName, getOrder, getUnsavedResources, getView, hasView, init, initModel, initView, initXML, isCore, isDepreciated, isEnabled, optionsLoaded, postInit, postInstall, setAddOn, setDescription, setEnabled, setI18nPrefix, setMessages, setName, setOrder, start, stop, supportsDb, supportsLowMemory, unload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sessionPropertiesChanged
getURL, getVersion
public String getUIName()
ExtensionAdaptor
getName()
.getUIName
in interface Extension
getUIName
in class ExtensionAdaptor
null
ExtensionAdaptor.getName()
public void hook(ExtensionHook extensionHook)
Extension
hook
in interface Extension
hook
in class ExtensionAdaptor
extensionHook
- the hook to add the components.public void sessionChanged(Session session)
SessionChangedListener
sessionChanged
in interface SessionChangedListener
session
- the new sessionpublic void sessionScopeChanged(Session session)
SessionChangedListener
sessionScopeChanged
in interface SessionChangedListener
session
- the current sessionpublic void sessionOpened(File file, Exception e)
SessionListener
sessionOpened
in interface SessionListener
file
- the File
of the sessione
- = exception thrown during session opening. null = no exception.public void sessionSaved(Exception e)
SessionListener
sessionSaved
in interface SessionListener
e
- = exception thrown during session opening. null = no exception.public void sessionAboutToChange(Session session)
SessionChangedListener
sessionAboutToChange
in interface SessionChangedListener
session
- the session about to be closedpublic String getAuthor()
Extension
Since 2.9.0 defaults to the author of the add-on, if set, otherwise an empty string.
public String getDescription()
Extension
getDescription
in interface Extension
getDescription
in class ExtensionAdaptor
null
public void sessionModeChanged(Control.Mode mode)
SessionChangedListener
sessionModeChanged
in interface SessionChangedListener
mode
- the new modepublic void sessionSnapshot(Exception e)
SessionListener
sessionSnapshot
in interface SessionListener
e
- = exception thrown during session snapshot. null = no exception.