setEnabled(getContext() != null &&  !fEditor.getSelectionProvider().getSelection().isEmpty());
setEnabled(getContext() != null && textHasContent(((ITextSelection)fEditor.getSelectionProvider().getSelection()).getText()));
	public void update() {		setEnabled(getContext() != null &&  !fEditor.getSelectionProvider().getSelection().isEmpty());	}