public class PluginEvent extends Object
PluginManager
to PluginListener
instances and indicates that a plugin was installed, uninstalled, enabled or disabled.T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Field and Description |
---|---|
static int |
PLUGIN_DISABLED
Event code 5 indicates that a plugin was disabled.
|
static int |
PLUGIN_ENABLED
Event code 4 indicates that a plugin was enabled.
|
static int |
PLUGIN_INSTALLED
Event code 1 indicates that a plugin was installed.
|
static int |
PLUGIN_UNINSTALLED
Event code 2 indicates that a plugin was uninstalled.
|
static int |
PLUGIN_UPDATED
Event code 3 indicates that a plugin was updated (upgraded to higher version).
|
Constructor and Description |
---|
PluginEvent(Object source,
int eventType,
PluginInfo plugin)
Event constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getEventType()
Get the event type.
|
PluginInfo |
getPluginInfo()
Get plugin associated with this event.
|
Object |
getSource()
Get source of the event (most time a
PluginManager instance). |
public static final int PLUGIN_INSTALLED
public static final int PLUGIN_UNINSTALLED
public static final int PLUGIN_UPDATED
public static final int PLUGIN_ENABLED
public static final int PLUGIN_DISABLED
public PluginEvent(Object source, int eventType, PluginInfo plugin)
source
- plugin source (most time a PluginManager
instance).eventType
- event type code.plugin
- a plugin.public PluginInfo getPluginInfo()
public Object getSource()
PluginManager
instance).public int getEventType()