1 11 package org.eclipse.jdt.internal.debug.ui.monitors; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.debug.internal.ui.viewers.provisional.IPresentationContext; 15 16 17 public class AsyncJavaWaitingThreadAdapter extends AsyncMonitorAdapter { 18 protected Object [] getChildren(Object parent, IPresentationContext context) throws CoreException { 19 return ((JavaWaitingThread)parent).getOwnedMonitors(); 20 } 21 22 protected boolean hasChildren(Object element, IPresentationContext context) throws CoreException { 23 JavaWaitingThread thread = (JavaWaitingThread) element; 24 return thread.getOwnedMonitors().length > 0; 25 } 26 } 27 | Popular Tags |