use of org.eclipse.xtext.ui.editor.XtextSourceViewer in project statecharts by Yakindu.
the class StyledTextXtextAdapter method createXtextSourceViewer.
protected XtextSourceViewer createXtextSourceViewer() {
final XtextSourceViewer result = new XtextSourceViewerEx(getStyledText(), getPreferenceStoreAccess().getPreferenceStore());
result.configure(getXtextSourceViewerConfiguration());
result.setDocument(getXtextDocument(), new AnnotationModel());
return result;
}
Aggregations