Skip to content

Commit

Permalink
Allow Xtext editor subclasses to control highlighting #3249
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Jobst <[email protected]>
  • Loading branch information
mx990 committed Nov 25, 2024
1 parent 574f7c3 commit 462269d
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,12 +593,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 462269d

Please sign in to comment.