public abstract class Extension extends Object
Constructor and Description |
---|
Extension() |
Modifier and Type | Method and Description |
---|---|
IActionHandler |
getActionHandler()
This method returns the ActionHandler which is used from the current
workspace.
|
ILogger |
getLogger()
This method returns the Logger which is used from the current workspace.
|
abstract String |
getName()
This abstract method has to be overwritten by all implementations of
Extension.
|
protected abstract String |
getResourceBase()
This abstract method has to be overwritten by all implementations.
|
IResourceLoader |
getResourceLoader()
This method returns the ResourceLoader of the running workbench.
|
IWorkbench |
getWorkbench()
This method returns the workspace into which this instance of the
extension runs.
|
void |
initialize(IWorkbench workbench)
This method is called if the Viptool Extension is loaded from the
ExtensionManager.
|
void |
registerMenuBar(IMenuTemplate template)
This method registers the menubar for this Extension.
|
void |
terminate()
This method should be overwritten by all classes which extends Extension.
|
void |
toolInitialized() |
String |
toString()
This method overwrites the toString-method from Object.
|
public void initialize(IWorkbench workbench)
workbench
- workbench which loads the extensionpublic void toolInitialized()
public final IWorkbench getWorkbench()
public ILogger getLogger()
public IActionHandler getActionHandler()
public void terminate()
public abstract String getName()
public String toString()
public void registerMenuBar(IMenuTemplate template)
template
- IMenuTemplate
public IResourceLoader getResourceLoader()
protected abstract String getResourceBase()