MetaDone
metadone.client.plugin.AbstractMetadonePlugin Class Reference
Inheritance diagram for metadone.client.plugin.AbstractMetadonePlugin:
Collaboration diagram for metadone.client.plugin.AbstractMetadonePlugin:

List of all members.

Public Member Functions

String getName ()
JMenu createMenu ()
final MetadoneEvents getEventManager ()
final Workspace getWorkspace ()
void startUp (MetadoneEvents eventManager)
void startUp (MetadoneEvents eventManager, Workspace workspace)
void dispose ()
void trigger (WorkspaceChanged event)

Private Attributes

MetadoneEvents eTower
Workspace workspace
final Subscription
< WorkspaceChanged,
AbstractMetadonePlugin
workspaceSubscription = new Subscription<WorkspaceChanged, AbstractMetadonePlugin>(this, WorkspaceChanged.class, null)

Detailed Description

An abstract implementation of a plugin.

The name of the plugin is the name of the class. Moreover this class keeps track of the current workspace and MetadoneEvents.

Author:
kma

Member Function Documentation

JMenu metadone.client.plugin.AbstractMetadonePlugin.createMenu ( )

Creates a menu to show in the main window.

This method should be called from the swing thread.

Returns:
A new menu for this instance of the plugin or null

Implements metadone.client.plugin.MetadonePlugin.

Reimplemented in metadone.plugin.grasyla.generator.GrasylaGenerator, and metadone.plugin.helloworld.HelloPlugin.

References metadone.client.plugin.AbstractMetadonePlugin.getName().

void metadone.client.plugin.AbstractMetadonePlugin.dispose ( )
final MetadoneEvents metadone.client.plugin.AbstractMetadonePlugin.getEventManager ( )
String metadone.client.plugin.AbstractMetadonePlugin.getName ( )
final Workspace metadone.client.plugin.AbstractMetadonePlugin.getWorkspace ( )

Gets the known workspace.

Returns:
The workspace or null

References metadone.client.plugin.AbstractMetadonePlugin.workspace.

Referenced by metadone.client.plugin.AbstractMetadonePlugin.dispose().

void metadone.client.plugin.AbstractMetadonePlugin.startUp ( MetadoneEvents  eventManager)
void metadone.client.plugin.AbstractMetadonePlugin.startUp ( MetadoneEvents  eventManager,
Workspace  workspace 
)

Called just before the plugin is used.

Parameters:
eventManagerThe event manager
workspaceThe current workspace or null

Implements metadone.client.plugin.MetadonePlugin.

References metadone.client.plugin.AbstractMetadonePlugin.startUp(), and metadone.client.plugin.AbstractMetadonePlugin.trigger().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations