org.gjt.sp.jedit

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » jEdit » org.gjt.sp.jedit 
org.gjt.sp.jedit
Java Source File NameTypeComment
Abbrevs.javaClass Abbreviation manager.
AbstractOptionPane.javaClass 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.javaClass Manages a collection of action sets.
ActionListHandler.javaClass
ActionSet.javaClass A set of actions, either loaded from an XML file, or constructed at runtime by a plugin.
Autosave.javaClass
BeanShell.javaClass
BeanShellAction.javaClass An action that evaluates BeanShell code when invoked.
Buffer.javaClass 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.javaClass Recent file list.
Debug.javaClass This class contains various debugging flags mainly useful for core development.
EBComponent.javaInterface A component on the EditBus.
EBMessage.javaClass 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.javaClass Plugins extending this class are automatically added to the EditBus.
EditAction.javaClass An action that can be bound to a menu item, tool bar button or keystroke.
EditBus.javaClass 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.javaClass 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.javaClass 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.javaClass Inter-process communication.

The edit server protocol is very simple.

GUIUtilities.javaClass
JARClassLoader.javaClass A class loader implementation that loads classes from JAR files.
jEdit.javaClass The main class of the jEdit text editor.
JEditKillRing.javaClass The basic KillRing of jEdit.
JEditMode.javaClass
JEditRegisterSaver.javaClass The concrete RegisterSaver for jEdit.
JEditRegistersListener.javaClass The concrete RegistersListener of jEdit.
Macros.javaClass This class records and runs macros.

It also contains a few methods useful for displaying output messages or obtaining input from a macro:

Note that plugins should not use the above methods.
Marker.javaClass 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.javaClass
Mode.javaClass An edit mode defines specific settings for editing some type of file.
ModeCatalogHandler.javaClass
OperatingSystem.javaClass Operating system detection routines.
OptionGroup.javaClass A set of option panes shown in one branch in the options dialog.

Plugins should not create instances of this class directly.

OptionPane.javaInterface 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.javaClass This class can contains static options needed by jEdit.
PerspectiveManager.javaClass Manages persistence of open buffers and views across jEdit sessions.
PluginJAR.javaClass 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.javaClass
Registers.javaClass jEdit's registers are an extension of the clipboard metaphor.

A Registers.Register is string of text indexed by a single character.

RegisterSaver.javaInterface An interface to delegate save/load operations of registers.
RegistersListener.javaInterface An interface to listen some events about registers.
ServiceListHandler.javaClass
ServiceManager.javaClass A generic way for plugins to provide various API extensions.

Services are loaded from files named services.xml inside the plugin JAR.

SettingsReloader.javaClass
SettingsXML.javaClass A XML file in the settings directory.
TextUtilities.javaClass Contains several text manipulation methods.
View.javaClass 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.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.