|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.synccharts.synchronizer.kitsView.EmbeddedXtextEditor
public class EmbeddedXtextEditor
Constructor Summary | |
---|---|
EmbeddedXtextEditor(Composite control,
com.google.inject.Injector injector)
Creates a new EmbeddedXtextEditor. |
|
EmbeddedXtextEditor(Composite control,
com.google.inject.Injector injector,
int style)
Creates a new EmbeddedXtextEditor. |
Method Summary | |
---|---|
void |
bringOnTop()
|
protected IVerticalRulerColumn |
createAnnotationRulerColumn(CompositeRuler ruler)
Creates the annotation ruler column. |
org.eclipse.xtext.resource.XtextResource |
createResource()
|
void |
dispose()
|
Composite |
getControl()
|
org.eclipse.xtext.ui.editor.model.IXtextDocument |
getDocument()
|
org.eclipse.xtext.resource.XtextResource |
getResource()
|
org.eclipse.xtext.ui.editor.XtextSourceViewer |
getViewer()
|
protected void |
setText(org.eclipse.xtext.ui.editor.model.XtextDocument document,
String editablePart)
Should be called only once, during initialization. |
void |
update(EObject eObject,
String asString)
Updates the text of this editor with the given String or the serialized form of the EObject if the semantic model of the String does not contain any error and is different from the given EObject. |
void |
update(String model)
Updates the text of this editor with the given String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmbeddedXtextEditor(Composite control, com.google.inject.Injector injector, int style)
control
- the parent composite that will contain the editorinjector
- the Guice injector to get Xtext configuration elementsjob
- the synchronization job that will be scheduled/rescheduled at each
modification of the editor text. It may be use to reconcile the content of
the editor with something else.style
- the SWT style of the SourceViewer
of this editor.fileExtension
- the file extension (without the DOT) of the textual DSL to editpublic EmbeddedXtextEditor(Composite control, com.google.inject.Injector injector)
control
- the parent composite that will contain the editorinjector
- the Guice injector to get Xtext configuration elementsjob
- the synchronization job that will be scheduled/rescheduled at each
modification of the editor text. It may be use to reconcile the content of
the editor with something else.fileExtension
- the file extension (without the DOT) of the textual DSL to editfileExtension
- Method Detail |
---|
public Composite getControl()
public org.eclipse.xtext.ui.editor.XtextSourceViewer getViewer()
public org.eclipse.xtext.resource.XtextResource getResource()
public org.eclipse.xtext.ui.editor.model.IXtextDocument getDocument()
protected void setText(org.eclipse.xtext.ui.editor.model.XtextDocument document, String editablePart)
#updateText(String, String, String)
;
document
- prefix
- editablePart
- suffix
- protected IVerticalRulerColumn createAnnotationRulerColumn(CompositeRuler ruler)
ruler
- the composite ruler that the column will be added
public void update(String model)
model
- public void update(EObject eObject, String asString)
eObject
- asString
- public org.eclipse.xtext.resource.XtextResource createResource()
public void dispose()
public void bringOnTop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |