public class ViewsPlugin extends YEditorPluginAdapter
Constructor and Description |
---|
ViewsPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
closeSpecification()
Called by the editor when a specification has been closed
(removed from the editor)
|
java.lang.String |
getDescription()
Gets a description of the plugin
|
java.lang.String |
getName()
Gets the name of this plugin
|
javax.swing.JMenu |
getPluginMenu()
Gets an entire menu structure (menu, item and sub-items) that will
appear as a menu tree on the 'Plugins' menu, and that will take the
desired action(s) when selected
|
YAWLSelectedNetAction |
getPluginMenuAction()
Gets a menu action that will appear as a menu item on the 'Plugins'
menu, and that will take the desired action when the action is selected
|
javax.swing.JToolBar |
getToolbar()
Gets a toolbar for the plugin's actions, to be displayed under the
main editor toolbar
|
void |
netElementAdded(NetGraphModel model,
YAWLVertex element)
Called by the editor immediately after a task or condition is
added to a net's canvas
|
void |
netElementsRemoved(NetGraphModel model,
java.util.Set<java.lang.Object> cellsAndTheirEdges)
Called by the editor immediately after one or more tasks or conditions
are removed from a net's canvas
|
void |
resourcingChanged(YAtomicTask task)
Called by the editor when an atomic task's resourcing has been changed
|
identifierChanged, identifiersRationalised, initCompleted, netAdded, netRemoved, openSpecification, performPostFileOpenTasks, performPostFileSaveTasks, performPreCellRenderingTasks, performPreFileOpenTasks, performPreFileSaveTasks, performPreFileSaveTasks, portsConnected
public java.lang.String getName()
YEditorPlugin
getName
in interface YEditorPlugin
getName
in class YEditorPluginAdapter
public java.lang.String getDescription()
YEditorPlugin
getDescription
in interface YEditorPlugin
getDescription
in class YEditorPluginAdapter
public YAWLSelectedNetAction getPluginMenuAction()
YEditorPlugin
getPluginMenuAction
in interface YEditorPlugin
getPluginMenuAction
in class YEditorPluginAdapter
public javax.swing.JMenu getPluginMenu()
YEditorPlugin
getPluginMenu
in interface YEditorPlugin
getPluginMenu
in class YEditorPluginAdapter
public javax.swing.JToolBar getToolbar()
YEditorPlugin
getToolbar
in interface YEditorPlugin
getToolbar
in class YEditorPluginAdapter
public void closeSpecification()
YEditorPlugin
closeSpecification
in interface YEditorPlugin
closeSpecification
in class YEditorPluginAdapter
public void netElementAdded(NetGraphModel model, YAWLVertex element)
YEditorPlugin
netElementAdded
in interface YEditorPlugin
netElementAdded
in class YEditorPluginAdapter
model
- a reference to the net model representing the canvaselement
- the task or condition that has been addedpublic void netElementsRemoved(NetGraphModel model, java.util.Set<java.lang.Object> cellsAndTheirEdges)
YEditorPlugin
netElementsRemoved
in interface YEditorPlugin
netElementsRemoved
in class YEditorPluginAdapter
model
- a reference to the net model representing the netcellsAndTheirEdges
- the set of cells (tasks, conditions and flows)
that have been removedpublic void resourcingChanged(YAtomicTask task)
YEditorPlugin
resourcingChanged
in interface YEditorPlugin
resourcingChanged
in class YEditorPluginAdapter
task
- the task