|
org.netbeans.modules.editor.util/1 1.25.0 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
See:
Description
| Editor Utilities | |
|---|---|
| org.netbeans.lib.editor.util | |
| org.netbeans.lib.editor.util.swing | |
The module defines EditorUtilitiesAPI.
The present clients are editor/lib and editor/fold modules.
Adding DocumentUtilities.debugOffset(doc, offset) to dump both the integer offset and line and column as seen in editor's status bar. PositionRegion.toString(doc) debugs its bounds using debugOffset(). Added PositionRegion.getText() and PositionRegion.getString() to obtain text of the region.
Adding DocumentUtilities.getMimeType(Document) and
DocumentUtilities.getMimeType(JTextComponent) in order
to standardize access to documents' mimetype.
Adding CharacterConversions as a replacement for
org.netbeans.editor.LineSeparatorConversion, which was
deprecated.
DocumentListenerPriority.FIRST is called prior any other
priority levels.
DocumentUtilities.getDocumentListenerCount() returns total count of document listeners attached to a document covering the case when the document priority listening is used.
The GapList class is a java.util.List implementation
similar to java.util.ArrayList but containing a gap in its underlying
array. After a first modification at a particular index
the subsequent modifications around that index are cheap.
The class is suitable for storage of any elements related to editing
such as positions, elements, views etc.
The PriorityMutex is a simple mutex implementation
allowing to find out that a priority thread (by default Event Dispatch Thread)
is waiting to enter the mutex.
It's used e.g. in editor's view hierarchy or in editor fold hierarchy.
GapList-based element implementation suitable for line elements and any other branch element types.
|
Read more about the implementation in the answers to architecture questions.
|
org.netbeans.modules.editor.util/1 1.25.0 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||