Skip to content

Commit 1d352bd

Browse files
Philipp0205PhilippKurrle
authored andcommitted
Add semantic highlighting to the Java compare/merge viewer #2929
1 parent 5d11746 commit 1d352bd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaMergeViewer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,10 @@ protected void doSetInput(IEditorInput input) throws CoreException {
622622
super.doSetInput(input);
623623
// the editor input has been explicitly set
624624
fInputSet = true;
625+
626+
if (getInputJavaElement() != null) {
627+
installSemanticHighlighting();
628+
}
625629
}
626630
// called by org.eclipse.ui.texteditor.TextEditorAction.canModifyEditor()
627631
@Override

0 commit comments

Comments
 (0)