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, waitexecute, initialize, isEnabled, isVisiblepublic void terminate()
IExtensionterminate in interface IExtensionpublic void postInitialize()
IExtensioninitialize()
has been called for ALL the extensions.postInitialize in interface IExtensionpublic IExtensionStatus getStatus()
IExtensiongetStatus in interface IExtensionIExtensionStatuspublic IExtensionStatus getStatus(IExtension extension)
getStatus in interface IExtensionpublic void setPlugin(PluginServices plugin)
public PluginServices getPlugin()
public boolean isEnabled(String action)
isEnabled in interface IExtensionQueryByActionpublic boolean isVisible(String action)
isVisible in interface IExtensionQueryByActionpublic boolean canQueryByAction()
canQueryByAction in interface IExtensionQueryByActionpublic void execute(String command, Object[] args)
execute in interface IExtensionExecuteWithArgs