use of org.eclipse.xtext.ui.editor.model.BacktrackingLexerDocumentTokenSource in project xtext-eclipse by eclipse.
the class BacktrackingLexerPresentationDamagerTest method createDocument.
@Override
protected Document createDocument(String before) throws Exception {
DocumentTokenSource source = new BacktrackingLexerDocumentTokenSource();
source.setLexer(new Provider<Lexer>() {
@Override
public Lexer get() {
return createLexer();
}
});
XtextDocument document = new XtextDocument(source, null, outdatedStateManager, operationCanceledManager);
document.set(before);
return document;
}
Aggregations