Skip navigation links
org.netbeans.modules.editor.lib2/1 2.30.1 55

Editor Library 2
Official

The Netbeans editor infrastructure provides an implementation of the Swing Text package APIs as well as some additional features such as syntax coloring, code folding, braces matching, etc.

See: Description

Editor Library 2 
Package Description
org.netbeans.api.editor  
org.netbeans.api.editor.caret
The Editor Caret API opens up the editor to give information about its carets and to manipulate them.
org.netbeans.spi.editor  
org.netbeans.spi.editor.caret
The Editor Caret SPI contains interface(s) to be implemented by clients in order to manipulate the editor carets.
org.netbeans.spi.editor.codegen
The Code Generator SPI gives modules a chance to plug their own code generators into the popup that appears in the editor on the Insert Code action invocation.
org.netbeans.spi.editor.document  
org.netbeans.spi.editor.highlighting
The Highlighting SPI is a new way of influencing how text in an editor component is rendered.
org.netbeans.spi.editor.highlighting.support
The support package provides several implementations of the HighlightsContainer interface.
org.netbeans.spi.editor.typinghooks
The Typing Hooks SPI allows modules to intercept various key typed events handled by the editor infrastructure.

The Netbeans editor infrastructure provides an implementation of the Swing Text package APIs as well as some additional features such as syntax coloring, code folding, braces matching, etc.

What is New (see all changes)?

Use Cases

At the moment the Editor Library 2 module contains distinct APIs/SPIs. They live in their own package and the usecases can be found in the packages overview.

Exported Interfaces

This table lists all of the module exported APIs with defined stability classifications. It is generated based on answers to questions about the architecture of the module. Read them all...
Group of java interfaces
Interface NameIn/OutStabilitySpecified in What Document?
editor-code-generatorExportedOfficial .../spi/editor/codegen/package-summary.html

Code Generator SPI

editor-highlightingExportedOfficial .../editor/highlighting/package-summary.html

Highlighting SPI

editor-typing-hooksExportedOfficial .../editor/typinghooks/package-summary.html

Typing Hooks SPI

editor-caretExportedOfficial .../api/editor/caret/package-summary.html

Editor Caret API

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

Defines a regular expression that can be used for filtering out highlighting layers used for rendering a text component. If specified, any layer with id matching the regular expression will be used for rendering the component. By default, when the property is not specified or is null, all layers are used. See Use case 5. for more details.

HighlightsLayerExcludesExportedOfficial

Defines a regular expression that can be used for filtering out highlighting layers used for rendering a text component. If specified, any layer with id matching the regular expression will not be used for rendering the component. By default, when the property is not specified or is null, all layers are used. See Use case 5. for more details.

Implementation Details

Where are the sources for the module?

The sources for the module are in the Apache Git repositories or in the GitHub repositories.

What do other modules need to do to declare a dependency on this one, in addition to or instead of a plain module dependency?
Just normal module dependency.

Read more about the implementation in the answers to architecture questions.

Skip navigation links
org.netbeans.modules.editor.lib2/1 2.30.1 55