org.gjt.sp.jedit
Class EditPlugin

java.lang.Object
  extended byorg.gjt.sp.jedit.EditPlugin
Direct Known Subclasses:
EBPlugin, EditPlugin.Broken, EditPlugin.Deferred

public abstract class EditPlugin
extends java.lang.Object

The abstract base class that every plugin must implement. Alternatively, instead of extending this class, a plugin core class can extend EBPlugin to automatically receive EditBus messages.

Basic plugin information properties

Note that in all cases above where a class name is needed, the fully qualified class name, including the package name, if any, must be used.

The following properties are required for jEdit to load the plugin:

The following properties are optional but recommended:

Plugin dependency properties

Plugin dependencies are also specified using properties. Each dependency is defined in a property named with plugin.class name.depend. followed by a number. Dependencies must be numbered in order, starting from zero.

The value of a dependency property has one of the following forms:

Plugin menu item properties

To add your plugin to the view's Plugins menu, define one of these two properties: If you want the plugin's menu items to be determined at runtime, define a property plugin.class name.menu.code to be BeanShell code that evaluates to an implementation of DynamicMenuProvider.

To add your plugin to the file system browser's Plugins menu, define one of these two properties:

In all cases, each action's menu item label is taken from the action name.label property. View actions are defined in an actions.xml file, file system browser actions are defined in a browser.actions.xml file; see ActionSet.

Plugin option pane properties

To add your plugin to the Plugin Options dialog box, define one of these two properties: Then for each option pane name, define these two properties: