@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;
 }
Example #2
0
 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;
 }
Example #3
0
 /* (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);
 }