public class EmbeddedXtextEditor extends Object
Constructor and Description |
---|
EmbeddedXtextEditor(Composite control,
Injector injector)
Creates a new EmbeddedXtextEditor.
|
EmbeddedXtextEditor(Composite control,
Injector injector,
int style)
Creates a new EmbeddedXtextEditor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
Composite |
getControl() |
IXtextDocument |
getDocument() |
EnvironmentFactory |
getEnvironmentFactory() |
OCL |
getOCL() |
XtextResource |
getResource() |
ResourceSet |
getResourceSet() |
XtextSourceViewer |
getViewer() |
void |
setContext(ResourceSet esResourceSet)
Reconfigure this editor to support editing with respect to any OCL provided by esResourceSet.
|
void |
update(String text)
Updates the text of this editor with the given String
|
public EmbeddedXtextEditor(Composite control, Injector injector, int style)
control
- the parent composite that will contain the editorinjector
- the Guice injector to get Xtext configuration elementsstyle
- the SWT style of the SourceViewer
of this editor.public EmbeddedXtextEditor(Composite control, Injector injector)
control
- the parent composite that will contain the editorinjector
- the Guice injector to get Xtext configuration elementspublic Composite getControl()
public XtextSourceViewer getViewer()
public XtextResource getResource()
public IXtextDocument getDocument()
public void update(String text)
text
- public void dispose()
public ResourceSet getResourceSet()
public OCL getOCL()
public EnvironmentFactory getEnvironmentFactory()
public void setContext(ResourceSet esResourceSet)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.