if (selectionProvider instanceof IPostSelectionProvider) { ((IPostSelectionProvider) selectionProvider).removePostSelectionChangedListener(fPostSelectionListener); selectionProvider.removeSelectionChangedListener(fSelectionListener); }
selectionProvider.removeSelectionChangedListener(fSelectionListener);
		public void uninstall(ISelectionListenerWithAST listener) {			fAstListeners.remove(listener);			if (isEmpty()) {				ISelectionProvider selectionProvider= fPart.getSelectionProvider();				if (selectionProvider instanceof IPostSelectionProvider) {					((IPostSelectionProvider) selectionProvider).removePostSelectionChangedListener(fPostSelectionListener);					selectionProvider.removeSelectionChangedListener(fSelectionListener);				}			}		}