textViewer.removeTextInputListener(this);
IDocument document = textViewer.getDocument();
if (document != null)
document.removeDocumentListener(this);
IPreferenceStore preferenceStore = getNewPreferenceStore();
if (preferenceStore != null)
preferenceStore.removePropertyChangeListener(this);