/** Enable code coloring */ private void enable() { // initializeCodeColors(); fPresenter = new ColoredHighlightingPresenter(); fPresenter.install(fSourceViewer, fPresentationReconciler); if (fEditor != null) { fReconciler = new ColoredHighlightingReconciler(); fReconciler.setColorManager(compUnitColorManager); fReconciler.install(fEditor, fSourceViewer, fPresenter); } else { fPresenter.updatePresentation(null, new CodeSegment[0], new CodeSegment[0]); } }