/** * Install this presenter on the given source viewer and background presentation * reconciler. * * @param sourceViewer the source viewer * @param backgroundPresentationReconciler the background presentation reconciler, * can be <code>null</code>, in that case {@link SemanticHighlightingPresenter#createPresentation(List, List)} * should not be called */ public void install(JavaSourceViewer sourceViewer, JavaPresentationReconciler backgroundPresentationReconciler) { fSourceViewer= sourceViewer; fPresentationReconciler= backgroundPresentationReconciler; fSourceViewer.prependTextPresentationListener(this); fSourceViewer.addTextInputListener(this); manageDocument(fSourceViewer.getDocument()); }
/** * Install this presenter on the given source viewer and background presentation * reconciler. * * @param sourceViewer the source viewer * @param backgroundPresentationReconciler the background presentation reconciler, * can be <code>null</code>, in that case {@link SemanticHighlightingPresenter#createPresentation(List, List)} * should not be called */ public void install(JavaSourceViewer sourceViewer, JavaPresentationReconciler backgroundPresentationReconciler) { fSourceViewer= sourceViewer; fPresentationReconciler= backgroundPresentationReconciler; fSourceViewer.prependTextPresentationListener(this); fSourceViewer.addTextInputListener(this); manageDocument(fSourceViewer.getDocument()); }
/** * Install this presenter on the given source viewer and background presentation * reconciler. * * @param sourceViewer the source viewer * @param backgroundPresentationReconciler the background presentation reconciler, * can be <code>null</code>, in that case {@link SemanticHighlightingPresenter#createPresentation(List, List)} * should not be called */ public void install(JavaSourceViewer sourceViewer, JavaPresentationReconciler backgroundPresentationReconciler) { fSourceViewer= sourceViewer; fPresentationReconciler= backgroundPresentationReconciler; fSourceViewer.prependTextPresentationListener(this); fSourceViewer.addTextInputListener(this); manageDocument(fSourceViewer.getDocument()); }