NetBeans Architecture Answers for Editor module

WARNING: answering questions version 1.12 rather than the current 1.25.

Interfaces table

Group of java interfaces
Interface NameIn/OutStabilitySpecified in What Document?
EditorAPIExportedOfficialhttp://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/text/doc-files/api.html

NodesAPIImportedOfficialhttp://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/nodes/doc-files/api.html

ActionsAPIImportedOfficialhttp://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/actions/doc-files/api.html

FilesystemsAPIImportedOfficialhttp://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/filesystems/doc-files/api.html

LoadersAPIImportedOfficialhttp://www.netbeans.org/download/dev/javadoc/LoadersAPI/org/openide/loaders/doc-files/api.html

UtilitiesAPIImportedOfficialhttp://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/util/doc-files/api.html

SettingsAPIImportedOfficialhttp://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/services-api.html#settings

WindowSystemAPIImportedOfficialhttp://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/windows/doc-files/api.html

Group of property interfaces
Interface NameIn/OutStabilitySpecified in What Document?
indentEngineExportedStable

Property hold instance of IndentEngine and this indentation engine is used instead of system one.

javax.swing.text.Document.StreamDescriptionPropertyImportedStable

Property hold instance of DataObject from which the document was created. This property can be used by the modules and is part of the Editor API.

javax.swing.text.Document.TitlePropertyImportedStable

Property hold instance of String with name of the file being edited. This property can be used by the modules and is part of the Editor API.

javax.swing.text.Document.modificationListenerExportedFriend

In order to fix issue 51872 the openide needs a way how to be notified about change of a document outside of its Document lock. DocumentListeners are always notified under the lock, so a special contract has been established (since version 5.3) by registering an instance of VetoableListener by calling putProperty ("modificationListener", listener). The NetBeans aware documents are adviced to honor this property and call the listener outside of the document lock when a modification is made. The actual contract of the call can be seen in NbLikeEditorKit.java in methods insertString and remove.


General Information


Project and platform dependencies


Deployment


Compatibility with environment


Access to resources


Lookup of components


Execution Environment


Format of files and protocols


Performance and Scalability


Built on July 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.