public class EmbeddedEditor
extends java.lang.Object
document
,
the source viewer configuration
, and the viewer
.Constructor and Description |
---|
EmbeddedEditor(XtextDocument document,
XtextSourceViewer viewer,
XtextSourceViewerConfiguration configuration,
IEditedResourceProvider resourceProvider,
java.lang.Runnable afterSetDocumet) |
Modifier and Type | Method and Description |
---|---|
EmbeddedEditorModelAccess |
createPartialEditor()
Obtain the
model access for this editor instance. |
EmbeddedEditorModelAccess |
createPartialEditor(boolean insertLinebreaks)
Obtain the
model access for this editor instance. |
EmbeddedEditorModelAccess |
createPartialEditor(java.lang.String prefix,
java.lang.String editablePart,
java.lang.String suffix,
boolean insertLineBreaks)
Obtain the
model access for this editor instance. |
XtextSourceViewerConfiguration |
getConfiguration() |
XtextDocument |
getDocument() |
XtextSourceViewer |
getViewer() |
public EmbeddedEditor(XtextDocument document, XtextSourceViewer viewer, XtextSourceViewerConfiguration configuration, IEditedResourceProvider resourceProvider, java.lang.Runnable afterSetDocumet)
public XtextSourceViewer getViewer()
public XtextDocument getDocument()
public XtextSourceViewerConfiguration getConfiguration()
public EmbeddedEditorModelAccess createPartialEditor(java.lang.String prefix, java.lang.String editablePart, java.lang.String suffix, boolean insertLineBreaks)
model access
for this editor instance.
It can be used to query the currently edited text or update it externally.
The prefix and the suffix will not be visible in the editor. It is possible to
insert artificial line-breaks between the three parts (prefix, editablePart, suffix).null
.public EmbeddedEditorModelAccess createPartialEditor(boolean insertLinebreaks)
model access
for this editor instance.
It can be used to query the currently edited text or update it externally.
This is a shortcut for
createPartialEditor("", "", "", insertLinebreaks)
.null
.public EmbeddedEditorModelAccess createPartialEditor()
model access
for this editor instance.
It can be used to query the currently edited text or update it externally.
This is a shortcut for
createPartialEditor("", "", "", false)
.null
.