use of org.eclipse.n4js.ui.N4JSEditor in project n4js by eclipse.
the class InvalidatingHighlightingHelper method propertyChange.
@Override
public void propertyChange(PropertyChangeEvent event) {
super.propertyChange(event);
XtextEditor editor = myEditor;
XtextSourceViewer sourceViewer = mySourceViewer;
if (editor instanceof N4JSEditor && sourceViewer != null && event.getProperty().contains(".syntaxColorer.tokenStyles")) {
((N4JSEditor) editor).initializeViewerColors(sourceViewer);
sourceViewer.invalidateTextPresentation();
}
}
Aggregations