|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.editor.embedded.EmbeddedEditor
public class EmbeddedEditor
Handle for an embedded Xtext editor. It allows to initialize the edited model
and provides accessors for the document
,
the source viewer configuration
, and the viewer
.
Constructor Summary | |
---|---|
EmbeddedEditor(XtextDocument document,
XtextSourceViewer viewer,
XtextSourceViewerConfiguration configuration,
IEditedResourceProvider resourceProvider,
java.lang.Runnable afterSetDocumet)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmbeddedEditor(XtextDocument document, XtextSourceViewer viewer, XtextSourceViewerConfiguration configuration, IEditedResourceProvider resourceProvider, java.lang.Runnable afterSetDocumet)
Method Detail |
---|
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
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |