Package jas2.plugin
See: Description
-
Interface Summary Interface Description BasicPluginContext A base class for both ExtensionPluginContext and PluginContextExtensionPluginContext The context passed to extension pluginsIExtensionPlugin Classes may implement this interface instead of extending ExtensionPlugin if they preferIPlugin Plugins may implement this class rather than extend Plugin if they prefer.IPluginInfo Plugins should implement this interface so they can be automatically updated using the plugin managerPageContext A PageContext allows a plugin to manipulate a page it has installed into the Java Analysis Application, as well as to receive events notifing the plugin of user initiated changes to the page,PageListener PluginContext The context that will be passed to (Job) Plugins.RunListener -
Class Summary Class Description BasicPlugin A base class for both Plugin and ExtensionPluginExtensionPlugin Support for Java Analysis Studio Extension Plugins The Plugin class is used to extend the functionality of Java Analysis Studio with experiment, group, or personal extensions.PageEvent Page Events are delivered to PageListeners in response to user interaction with a pagePlugin Support for Java Analysis Studio Job Plugins The Plugin class is used to extend the functionality of Java Analysis Studio with experiment, group, or personal extensions.RunEvent Run Events are delivered to RunListeners when the run state changes (i.e. -
Exception Summary Exception Description NoEventAvailable Thrown if getCurrentEvent is called when no event is available
Package jas2.plugin Description
Defines the interfaces that other programs can use to "plug themselves in" to JAS.
Currently we support two different types of plugins:
- Extension Plugins - loaded when JAS starts, and normally remain loaded for the entire JAS session.
- Job Plugins - loaded within the context of a Job. Anything done by a job plugin is automatically undone when the current job is closed.
The first type of plugin normally extends class ExtensionPlugin, and the latter Plugin (should really be called JobPlugin, but for historical reasons just called Plugin). As an alternative to extending Plugin or ExtensionPlugin plugins can instead just implement IPlugin or IExtensionPlugin respectively.
Plugins communicate with the application they are embedded in using a PluginContext. This context is installed after the plugin's constructor is called but before the init() method is called, so most initialization should normally be done in the init method rather than the constructor.
Actions currently supported by both types of plugin include:
- Installing menus.
- Opening and closing pages, control panels or consoles.
- Dispay error messages
- Send messages to the status region of the GUI
In addition ExtensionPlugins can install new Data Interface Modules (DIMS) and Job plugins can receive notification of changes in run state and get a copy of the current event.
Class Diagram

DataMelt 3.0 © DataMelt by jWork.ORG