protected JDIDebugTarget getContextFromUI() {
protected JDIDebugTarget getContextFromUI() throws DebugException {
	protected JDIDebugTarget getContextFromUI() {				IWorkbenchPage page= fEditor.getSite().getWorkbenchWindow().getActivePage();		if (page == null)			return null;					IViewPart part= page.findView(IDebugUIConstants.ID_DEBUG_VIEW);		if (part == null)			return null;					ISelectionProvider sp= part.getSite().getSelectionProvider();		if (sp != null) {			ISelection s= sp.getSelection();			if (s instanceof IStructuredSelection) {				IStructuredSelection ss= (IStructuredSelection) s;				Object item= ss.getFirstElement();				if (item instanceof IStackFrame) {					return (JDIDebugTarget) ((IStackFrame) item).getDebugTarget();				}				if (item instanceof IThread) {					return getContextFromThread((IThread) item);				}				if (item instanceof JDIDebugTarget) {					return (JDIDebugTarget) item;				}			}		}				return null;	}