if (textHasContent(((ITextSelection)fWorkbenchPart.getSite().getSelectionProvider().getSelection()).getText())) { enabled = true;
ISelectionProvider provider = fWorkbenchPart.getSite().getSelectionProvider(); if (provider != null)  { if (textHasContent(((ITextSelection)provider.getSelection()).getText())) { enabled = true; }
	public void update() {		boolean enabled = false;		if (isValidStackFrame()) {			if (textHasContent(((ITextSelection)fWorkbenchPart.getSite().getSelectionProvider().getSelection()).getText())) {				enabled = true;			}		}		setEnabled(enabled);	}