@Override public IModelProxy createModelProxy(Object element, IPresentationContext context) { if (IDebugUIConstants.ID_DEBUG_VIEW.equals(context.getId())) { if (element instanceof PDADebugTarget) { return new PDADebugTargetProxy((IDebugTarget) element); } } return null; }
private TCFNode getRootNode(IWorkbenchPart part) { IWorkbenchPartSite site = part.getSite(); if (site == null || IDebugUIConstants.ID_DEBUG_VIEW.equals(site.getId())) { return null; } if (part instanceof IDebugView) { Object input = ((IDebugView) part).getViewer().getInput(); if (input instanceof TCFNode) return (TCFNode) input; } return null; }
/* (non-Javadoc) * @see org.eclipse.debug.internal.ui.viewers.model.provisional.elements.ElementContentProvider#supportsContextId(java.lang.String) */ protected boolean supportsContextId(String id) { return IDebugUIConstants.ID_DEBUG_VIEW.equals(id); }