org.gjt.sp.jedit |
|
Java Source File Name | Type | Comment |
Abbrevs.java | Class | Abbreviation manager. |
AbstractOptionPane.java | Class | The default implementation of the option pane interface.
See
EditPlugin for information on how jEdit obtains and constructs
option pane instances.
Most option panes extend this implementation of
OptionPane , instead
of implementing
OptionPane directly. |
ActionContext.java | Class | Manages a collection of action sets. |
ActionListHandler.java | Class | |
ActionSet.java | Class | A set of actions, either loaded from an XML file, or constructed at runtime
by a plugin. |
Autosave.java | Class | |
BeanShell.java | Class | |
BeanShellAction.java | Class | An action that evaluates BeanShell code when invoked. |
Buffer.java | Class | A Buffer represents the contents of an open text
file as it is maintained in the computer's memory (as opposed to
how it may be stored on a disk).
In a BeanShell script, you can obtain the current buffer instance from the
buffer variable.
This class does not have a public constructor.
Buffers can be opened and closed using methods in the jEdit
class.
This class is partially thread-safe, however you must pay attention to two
very important guidelines:
- Changes to a buffer can only be made from the AWT thread.
- When accessing the buffer from another thread, you must
grab a read lock if you plan on performing more than one call, to ensure that
the buffer contents are not changed by the AWT thread for the duration of the
lock.
|
BufferHistory.java | Class | Recent file list. |
Debug.java | Class | This class contains various debugging flags mainly useful for core
development. |
EBComponent.java | Interface | A component on the EditBus. |
EBMessage.java | Class | The base class of all EditBus messages.
Message classes extending this class typically add
other data members and methods to provide subscribers with whatever is
needed to handle the message appropriately.
Message types sent by jEdit can be found in the
org.gjt.sp.jedit.msg package. |
EBPlugin.java | Class | Plugins extending this class are automatically added to the EditBus. |
EditAction.java | Class | An action that can be bound to a menu item, tool bar button or keystroke. |
EditBus.java | Class | jEdit's global event notification mechanism.
Plugins register with the EditBus to receive messages reflecting
changes in the application's state, including changes in buffers,
views and edit panes, changes in the set of properties maintained
by the application, and the closing of the application.
The EditBus maintains a list of objects that have requested to receive
messages. |
EditPane.java | Class | A panel containing a text area.
In a BeanShell script, you can obtain the current edit pane from the
editPane variable.
Each View can have multiple editPanes, one is active at a time.
Each EditPane has a single JEditTextArea, and is operating on single buffer.
The EditPane also can switch buffers. |
EditPlugin.java | Class | 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 className 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:
plugin.className.activate - set this to
defer if your plugin only needs to be loaded when it is first
invoked; set it to startup if your plugin must be loaded at
startup regardless; set it to a whitespace-separated list of property names
if your plugin should be loaded if at least one of these properties is set.
Note that if this property is not set, the plugin will not work with
jEdit 4.3final.
plugin.className.name
plugin.className.version
plugin.className.jars - only needed if your plugin
bundles external JAR files. |
EditServer.java | Class | Inter-process communication.
The edit server protocol is very simple. |
GUIUtilities.java | Class | |
JARClassLoader.java | Class | A class loader implementation that loads classes from JAR files. |
jEdit.java | Class | The main class of the jEdit text editor. |
JEditKillRing.java | Class | The basic KillRing of jEdit. |
JEditMode.java | Class | |
JEditRegisterSaver.java | Class | The concrete RegisterSaver for jEdit. |
JEditRegistersListener.java | Class | The concrete RegistersListener of jEdit. |
Macros.java | Class | This class records and runs macros.
It also contains a few methods useful for displaying output messages
or obtaining input from a macro:
-
Macros.confirm(Component,String,int)
-
Macros.confirm(Component,String,int,int)
-
Macros.error(Component,String)
-
Macros.input(Component,String)
-
Macros.input(Component,String,String)
-
Macros.message(Component,String)
Note that plugins should not use the above methods. |
Marker.java | Class | Buffers may contain one or more markers which serve
as textual bookmarks.
A Marker has three key attributes: the
Buffer to which it relates, the line number to which
the marker refers, and an optional shortcut character. |
MiscUtilities.java | Class | |
Mode.java | Class | An edit mode defines specific settings for editing some type of file. |
ModeCatalogHandler.java | Class | |
OperatingSystem.java | Class | Operating system detection routines. |
OptionGroup.java | Class | A set of option panes shown in one branch in the options dialog.
Plugins should not create instances of this class directly. |
OptionPane.java | Interface | The interface all option panes must implement.
See
EditPlugin for information on how jEdit obtains and constructs
option pane instances.
Note that in most cases it is much easier to extend
AbstractOptionPane instead. |
Options.java | Class | This class can contains static options needed by jEdit. |
PerspectiveManager.java | Class | Manages persistence of open buffers and views across jEdit sessions. |
PluginJAR.java | Class | Loads and unloads plugins.
JAR file contents
When loading a plugin, jEdit looks for the following resources:
- A file named
actions.xml defining plugin actions.
Only one such file per plugin is allowed. |
PropertyManager.java | Class | |
Registers.java | Class | jEdit's registers are an extension of the clipboard metaphor.
A
Registers.Register is string of text indexed by a
single character. |
RegisterSaver.java | Interface | An interface to delegate save/load operations of registers. |
RegistersListener.java | Interface | An interface to listen some events about registers. |
ServiceListHandler.java | Class | |
ServiceManager.java | Class | A generic way for plugins to provide various API extensions.
Services are loaded from files named services.xml inside the
plugin JAR. |
SettingsReloader.java | Class | |
SettingsXML.java | Class | A XML file in the settings directory. |
TextUtilities.java | Class | Contains several text manipulation methods. |
View.java | Class | A View is jEdit's top-level frame window.
In a BeanShell script, you can obtain the current view instance from the
view variable.
The largest component it contains is an
EditPane that in turn
contains a
org.gjt.sp.jedit.textarea.JEditTextArea that displays a
Buffer .
A view can have more than one edit pane in a split window configuration.
A view also contains a menu bar, an optional toolbar and other window
decorations, as well as docked windows.
The View class performs two important operations
dealing with plugins: creating plugin menu items, and managing dockable
windows.
- When a view is being created, its initialization routine
iterates through the collection of loaded plugins and constructs the
Plugins menu using the properties as specified in the
EditPlugin class.
- The view also creates and initializes a
org.gjt.sp.jedit.gui.DockableWindowManager object.
|