|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.examples.xtext.console.xtfo.EmbeddedXtextEditor
public class EmbeddedXtextEditor
| Constructor Summary | |
|---|---|
EmbeddedXtextEditor(org.eclipse.swt.widgets.Composite control,
com.google.inject.Injector injector)
Creates a new EmbeddedXtextEditor. |
|
EmbeddedXtextEditor(org.eclipse.swt.widgets.Composite control,
com.google.inject.Injector injector,
int style)
Creates a new EmbeddedXtextEditor. |
|
| Method Summary | |
|---|---|
protected org.eclipse.jface.text.source.IVerticalRulerColumn |
createAnnotationRulerColumn(org.eclipse.jface.text.source.CompositeRuler ruler)
Creates the annotation ruler column. |
protected EmbeddedXtextResource |
createResource()
|
org.eclipse.swt.widgets.Composite |
getControl()
|
org.eclipse.xtext.ui.editor.model.IXtextDocument |
getDocument()
|
org.eclipse.xtext.resource.XtextResource |
getResource()
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
|
org.eclipse.xtext.ui.editor.XtextSourceViewer |
getViewer()
|
protected void |
setText(org.eclipse.xtext.ui.editor.model.XtextDocument document,
java.lang.String text)
Should be called only once, during initialization. |
void |
update(java.lang.String text)
Updates the text of this editor with the given String |
protected void |
updateAction(org.eclipse.jface.action.IAction action)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedXtextEditor(org.eclipse.swt.widgets.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 edit
public EmbeddedXtextEditor(org.eclipse.swt.widgets.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 org.eclipse.swt.widgets.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,
java.lang.String text)
#updateText(String, String, String);
document - prefix - text - suffix - protected org.eclipse.jface.text.source.IVerticalRulerColumn createAnnotationRulerColumn(org.eclipse.jface.text.source.CompositeRuler ruler)
ruler - the composite ruler that the column will be added
public void update(java.lang.String text)
text - protected void updateAction(org.eclipse.jface.action.IAction action)
protected EmbeddedXtextResource createResource()
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||