Skip to content

Commit

Permalink
Allow Xtext editor subclasses to control highlighting eclipse-xtext#3249
Browse files Browse the repository at this point in the history


Signed-off-by: Martin Jobst <[email protected]>
  • Loading branch information
mx990 authored and szarnekow committed Dec 30, 2024
1 parent 05de65c commit 202291f
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,12 +591,18 @@ public void selectionChanged(final SelectionChangedEvent event) {
}
}

private void installHighlightingHelper() {
/**
* @since 2.38
*/
protected void installHighlightingHelper() {
if (highlightingHelper != null)
highlightingHelper.install(this, (XtextSourceViewer) getSourceViewer());
}

private void uninstallHighlightingHelper() {
/**
* @since 2.38
*/
protected void uninstallHighlightingHelper() {
if (highlightingHelper != null)
highlightingHelper.uninstall();
}
Expand Down

0 comments on commit 202291f

Please sign in to comment.