Search in sources :

Example 6 with XtextSourceViewer

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;
}
Also used : XtextSourceViewer(org.eclipse.xtext.ui.editor.XtextSourceViewer) AnnotationModel(org.eclipse.jface.text.source.AnnotationModel)

Aggregations

XtextSourceViewer (org.eclipse.xtext.ui.editor.XtextSourceViewer)6 ICompletionProposal (org.eclipse.jface.text.contentassist.ICompletionProposal)2 IQuickAssistProcessor (org.eclipse.jface.text.quickassist.IQuickAssistProcessor)2 QuickAssistAssistant (org.eclipse.jface.text.quickassist.QuickAssistAssistant)2 TextInvocationContext (org.eclipse.jface.text.source.TextInvocationContext)2 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)1 IStatus (org.eclipse.core.runtime.IStatus)1 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)1 Job (org.eclipse.core.runtime.jobs.Job)1 IUndoManager (org.eclipse.jface.text.IUndoManager)1 IReconciler (org.eclipse.jface.text.reconciler.IReconciler)1 IReconcilingStrategyExtension (org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension)1 AnnotationModel (org.eclipse.jface.text.source.AnnotationModel)1 ISourceViewer (org.eclipse.jface.text.source.ISourceViewer)1 N4JSEditor (org.eclipse.n4js.ui.N4JSEditor)1 Display (org.eclipse.swt.widgets.Display)1 Event (org.eclipse.swt.widgets.Event)1 IEObjectDescription (org.eclipse.xtext.resource.IEObjectDescription)1 IResourceDescription (org.eclipse.xtext.resource.IResourceDescription)1 XtextResource (org.eclipse.xtext.resource.XtextResource)1