java.lang.Object
org.gjt.sp.jedit.EBMessage
org.gjt.sp.jedit.msg.PluginUpdate
Message sent when plugins are loaded and unloaded.
- Since:
- jEdit 4.2pre1
- Version:
- $Id: PluginUpdate.java 25221 2020-04-12 16:00:17Z kpouer $
- Author:
- Slava Pestov
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPluginUpdate
(File file, Object what, boolean exit) Creates a new plugin update message.PluginUpdate
(PluginJAR jar, Object what, boolean exit) Creates a new plugin update message. -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
Returns the file representing the plugin involved.Returns the plugin involved.Returns the plugin version.getWhat()
Returns what caused this plugin update.boolean
Returns true if this plugin is being unloaded as part of the shutdown process, in which case some components like the help viewer and plugin manager ignore the event.
-
Field Details
-
LOADED
Plugin loaded. This is sent after a JAR file is added to the list and scanned.- Since:
- jEdit 4.2pre1
-
ACTIVATED
Plugin activated. This is sent after the plugin core class is loaded and itsstart()
method is called.- Since:
- jEdit 4.2pre1
-
DEACTIVATED
Plugin deactivated. This is sent after the plugin core classstop()
method is called.- Since:
- jEdit 4.2pre2
-
UNLOADED
Plugin unloaded.- Since:
- jEdit 4.2pre1
-
REMOVED
Plugin removed, as in deleted from disk.- Since:
- jEdit 5.2
-
-
Constructor Details
-
PluginUpdate
Creates a new plugin update message.- Parameters:
jar
- The pluginwhat
- What happenedexit
- Is the editor exiting?- Since:
- jEdit 4.2pre3
-
PluginUpdate
Creates a new plugin update message. This constructor should be used when the plugin is being removed and the PluginJAR is no longer available.- Parameters:
file
- The file representing the pluginwhat
- What happenedexit
- Is the editor exiting?- Since:
- jEdit 4.2pre3
-
-
Method Details
-
getWhat
Returns what caused this plugin update. -
isExiting
public boolean isExiting()Returns true if this plugin is being unloaded as part of the shutdown process, in which case some components like the help viewer and plugin manager ignore the event.- Since:
- jEdit 4.2pre3
-
getPluginJAR
Returns the plugin involved. It might be null when the plugin is removed -
getFile
Returns the file representing the plugin involved. -
getPluginVersion
Returns the plugin version.- Returns:
- the plugin version. It may be null in some case like for the libraries
- Since:
- 4.4pre1
-
paramString
- Overrides:
paramString
in classEBMessage
- Returns:
- a string representation of this message's parameters.
-