use of org.eclipse.jface.text.ITextViewerExtension4 in project eclipse.platform.text by eclipse.
the class DefaultHyperlinkPresenter method uninstall.
@Override
public void uninstall() {
fTextViewer.removeTextInputListener(this);
IDocument document = fTextViewer.getDocument();
if (document != null)
document.removeDocumentListener(this);
if (fColor != null) {
if (fDisposeColor)
fColor.dispose();
fColor = null;
}
if (fTextViewer instanceof ITextViewerExtension4)
((ITextViewerExtension4) fTextViewer).removeTextPresentationListener(this);
fTextViewer = null;
if (fPreferenceStore != null) {
fPreferenceStore.removePropertyChangeListener(this);
fPreferenceStore = null;
}
}
Aggregations