org.openide.text |
NetBeans is able to integrate multiple
editors
for different content types and mechanically access their content.
Using the Editor API, it is
possible to get access to the Swing-based editor which is being used
to edit an open file of whatever content type. This would permit you
to test what the user was doing with this file; mechanically retrieve
and modify text from the open buffer; prevent certain areas of a
textual file from being modified by the user; set annotations in the
gutter; and so on.
This API also permits a module implementor to add a custom editor for
some or all (probably textual) content types. Essentially, any editor
implementation may be used which is capable of being embedded as a
Swing EditorKit; handling guarded blocks; and handling breakpoints and
the like (for Java source).
|
Java Source File Name | Type | Comment |
ActiveEditorDrop.java | Interface | ActiveEditorDrop with artificial DataFlavor. |
Annotatable.java | Class | Classes which are capable of holding annotations must
extend this abstract class. |
Annotation.java | Class | Description of annotation. |
AnnotationProvider.java | Interface | A provider of annotations for given context. |
AnnotationProviderTest.java | Class | |
AttributedCharacters.java | Class | The class is a support for all classes that implement PrintCookie. |
BackwardPosition.java | Class | Position that stays at the same place if someone inserts
directly to its offset. |
CloneableEditor.java | Class | Cloneable top component to hold the editor kit. |
CloneableEditorSupport.java | Class | Support for associating an editor and a Swing
Document .
Can be assigned as a cookie to any editable data object.
This class is abstract, so any subclass has to provide implementation
for abstract method (usually for generating of messages) and also
provide environment
Env to give this support access to
input/output streams, mime type and other features of edited object.
This class implements methods of the interfaces
org.openide.cookies.EditorCookie ,
org.openide.cookies.OpenCookie ,
org.openide.cookies.EditCookie ,
org.openide.cookies.ViewCookie ,
org.openide.cookies.LineCookie ,
org.openide.cookies.CloseCookie , and
org.openide.cookies.PrintCookie but does not implement
those interfaces. |
CloneableEditorSupportPaneTest.java | Class | |
CloneableEditorSupportRedirector.java | Class | Allows to find another
CloneableEditorSupport that all the
requests passed to given one should be redirected to. |
CloneableEditorSupportRedirectorTest.java | Class | |
CloneableEditorSupportTest.java | Class | |
CloneableEditorTest.java | Class | |
CloneableEditorUserQuestionTest.java | Class | Testing usage of UserQuestionException in CES. |
DataEditorSupport.java | Class | Support for associating an editor and a Swing
Document to a data object. |
DataEditorSupportSaveAsTest.java | Class | |
DataEditorSupportTest.java | Class | |
Deadlock40766Test.java | Class | Exception during load of the document can cause starvation
in the thread that waits for that to happen. |
Deadlock47515Test.java | Class | |
Deadlock49178Test.java | Class | Tries closing a document while holding a read lock and adding
a position reference from other thread. |
Deadlock56413Test.java | Class | Try firing a PROP_TIME while the document is just being loaded. |
DefaultPrintable.java | Class | The class creates from an instance of AttributedCharacterIterator
a java.awt.print.Pageable object. |
DocumentCannotBeClosedWhenAWTBlockedTest.java | Class | Simulates issue 46981. |
DocumentCannotBeClosedWhenReadLockedTest.java | Class | Simulates issue 46981. |
DocumentLine.java | Class | Implementation of a line in a
StyledDocument . |
EditorSupport.java | Class | Support for associating an editor and a Swing
Document to a data object. |
EditorSupportLineSet.java | Class | Line set for an EditorSupport. |
EmptyCESHidden.java | Class | Empty implementstion of CloneableEditorSupport .
Helper test class. |
EnhancedChangeEvent.java | Class | Extension of ChangeEvent with additional information
about document and the state of the document. |
EvenIfReadonlyItNeedsToThrowExceptionTest.java | Class | |
ExternalDeleteOfModifiedContentTest.java | Class | Modified editor shall not be closed when its file is externally removed. |
ExternalDeleteOfModifiedFileTest.java | Class | Modified editor shall not be closed when its file is externally removed. |
FilterDocument.java | Class | Document that delegates all functionality to given document. |
FilterStyledDocument.java | Class | Document that delegates all functionality to a given
StyledDocument . |
IndentEngine.java | Class | Indentation engine for formating text in documents. |
LazyLines.java | Class | Lazy List that delegates to another instance of itself. |
Line.java | Class | Represents one line in a text document.
The line number may change
when the text is modified, but the identity of the line is retained. |
LineListener.java | Class | Listener to changes in the document. |
LineSetTest.java | Class | Testing LineSet impl for CloneableEditorSupport. |
LineStruct.java | Class | Class that holds line information about one document. |
NbDocument$Colors.java | Class | |
NbDocument.java | Class | Dummy class holding utility methods for working with NetBeans document conventions. |
NbDocumentTest.java | Class | Testing LineSet impl for CloneableEditorSupport. |
NbLikeEditorKit.java | Class | Emulates the behaviour of NetBeans editor's kit with all its special
implementations. |
NetworkConnectionLostTest.java | Class | Testing usage of UserQuestionException in CES. |
NotifyModifiedOnNbEditorLikeKitTest.java | Class | |
NotifyModifiedTest.java | Class | |
PeterZMoveTest.java | Class | |
PositionBounds.java | Class | A range bounded by two
PositionRef s. |
PositionRef.java | Class | Reference to one position in a document. |
PositionRefTest.java | Class | |
PrintPreferences.java | Class | Allows get, set properties that specify the look of a printed Source Editor page,
including headers, footers, vertical spacing, and line numbers. |
PrintPreferencesTest.java | Class | |
PrintSettings.java | Class | Settings for output window. |
PrintSettingsBeanInfo.java | Class | BeanInfo for PrintSettings. |
QuietEditorPane.java | Class | |
ReloadDeadlockTest.java | Class | Test of deadlock described by issue #12557. |
ReloadOnNbLikeEditorKitTest.java | Class | |
ReloadTest.java | Class | |
ReusableEditorTest.java | Class | Testing the behavior of editor reusal framework. |
SaveDocumentTest.java | Class | How to run from IDE:
1. |
SimpleCESHidden.java | Class | Empty implementstion of CloneableEditorSupport .
Helper test class. |
SimpleDESTest.java | Class | DefaultDataObject is supposed to have open operation that shows the text
editor or invokes a dialog with questions. |
SimpleES.java | Class | Basic editor support. |
Starvation37045SecondTest.java | Class | Exception during load of the document can cause starvation
in the thread that waits for that to happen. |
Starvation37045Test.java | Class | Exception during load of the document can cause starvation
in the thread that waits for that to happen. |
TextTest.java | Class | Regression tests.
How to run from IDE:
1. |
UndoRedoCooperationTest.java | Class | Emulating old UndoRedo manager deadlock. |
UndoRedoTest.java | Class | Checks that the default impl of Documents UndoRedo really locks
the document first on all of its methods. |
UndoRedoWrappingExampleTest.java | Class | Example of an edit that encapsulates more edits into one. |
WrapEditorComponentTest.java | Class | Tests that the CloneableEditorSupport.wrapEditorComponent() method
is called by CloneableEditor and its result value used. |