|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IVerinecModule
The Verinec Editor provides an api to plug in modules. Every plugin module must implement this interface.
When a module gets active, its load method is called. This is the moment to
add custom menues or actions. To access the NwComponents currently loaded, use
VerinecStudio.getNetworkComponents().
The module is unloaded and loaded again when an other network is opened in
the gui.
The plugin does not need to clean up its menues or context menues at unload, because menues and items are recreated each time the module is changed.
If the module needs to store any settings, it should use the
VerinecStudio.loadConfig(String) and
VerinecStudio.saveConfig(String,org.jdom.Document) methods.
It can have a configuration dialog to display in the verinec application
settings dialog. To announce its configurability to the GUI, it must
implement the IConfigurable interface.
| Method Summary | |
|---|---|
void |
load(VerinecStudio parent)
Load this module to be the active module. |
String |
toString()
The toString method should just return the modules name for the module selection dropdown. |
void |
unload()
Unload this module, it can clean up its own stuff etc. |
| Method Detail |
|---|
void load(VerinecStudio parent)
throws VerinecException
parent - The analyser to use for call backs.
VerinecException - If something goes wrong while loading. The module will not be used after throwing an exception.void unload()
String toString()
toString in class Object
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||