public abstract class Extension extends 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
Constructor and Description |
---|
Extension() |
Modifier and Type | Method and Description |
---|---|
boolean |
canQueryByAction() |
void |
execute(String command,
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) |
String |
getText(String msg) |
boolean |
isEnabled(String action) |
boolean |
isVisible(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 void setPlugin(PluginServices plugin)
public PluginServices getPlugin()
public boolean isEnabled(String action)
isEnabled
in interface IExtensionQueryByAction
public boolean isVisible(String action)
isVisible
in interface IExtensionQueryByAction
public boolean canQueryByAction()
canQueryByAction
in interface IExtensionQueryByAction
public void execute(String command, Object[] args)
execute
in interface IExtensionExecuteWithArgs