net.sf.taverna.update.plugin.event
Class PluginManagerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.taverna.update.plugin.event.PluginManagerEvent
All Implemented Interfaces:
java.io.Serializable

public class PluginManagerEvent
extends java.util.EventObject

An event to notify listeners that the PluginManager has changed.

Author:
David Withers
See Also:
Serialized Form

Constructor Summary
PluginManagerEvent(java.lang.Object source, Plugin plugin, int pluginIndex)
          Constructs an instance of PluginManagerEvent.
 
Method Summary
 Plugin getPlugin()
          Returns the plugin.
 int getPluginIndex()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginManagerEvent

public PluginManagerEvent(java.lang.Object source,
                          Plugin plugin,
                          int pluginIndex)
Constructs an instance of PluginManagerEvent.

Parameters:
source -
plugin -
pluginIndex - - the index of the plugin in the managers list of plugins
Method Detail

getPlugin

public Plugin getPlugin()
Returns the plugin.

Returns:
the plugin

getPluginIndex

public int getPluginIndex()
Returns:
the index of the plugin in the plugin managers internal list