public abstract class Extension extends java.lang.Object implements IExtension, IExtensionQueryByAction, IExtensionExecuteWithArgs
IExtension
is an extension, but directly implementing
that interface is discouraged. The preferred way to create
an extension is extending this absctract class.IExtension
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger |
Constructor and Description |
---|
Extension() |
Modifier and Type | Method and Description |
---|---|
boolean |
canQueryByAction() |
void |
execute(java.lang.String command,
java.lang.Object[] args) |
PluginServices |
getPlugin() |
IExtensionStatus |
getStatus()
Gets the status of the extension, which may be queried to check
if the extension has some unsaved data or some associated background
tasks.
|
IExtensionStatus |
getStatus(IExtension extension) |
java.lang.String |
getText(java.lang.String msg) |
boolean |
isEnabled(java.lang.String action) |
boolean |
isVisible(java.lang.String action) |
void |
postInitialize()
Extension's post-initialization code should be here.
|
void |
setPlugin(PluginServices plugin) |
void |
terminate()
Extension's termination code should be here.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, initialize, isEnabled, isVisible
public void terminate()
IExtension
terminate
in interface IExtension
public void postInitialize()
IExtension
initialize()
has been called for ALL the extensions.postInitialize
in interface IExtension
public IExtensionStatus getStatus()
IExtension
getStatus
in interface IExtension
IExtensionStatus
public IExtensionStatus getStatus(IExtension extension)
getStatus
in interface IExtension
public java.lang.String getText(java.lang.String msg)
public void setPlugin(PluginServices plugin)
public PluginServices getPlugin()
public boolean isEnabled(java.lang.String action)
isEnabled
in interface IExtensionQueryByAction
public boolean isVisible(java.lang.String action)
isVisible
in interface IExtensionQueryByAction
public boolean canQueryByAction()
canQueryByAction
in interface IExtensionQueryByAction
public void execute(java.lang.String command, java.lang.Object[] args)
execute
in interface IExtensionExecuteWithArgs