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 public class AsyncJavaOwnedMonitorAdapter extends AsyncMonitorAdapter { 17 18 protected Object [] getChildren(Object parent, IPresentationContext context) throws CoreException { 19 return ((JavaOwnedMonitor)parent).getWaitingThreads(); 20 } 21 22 protected boolean hasChildren(Object element, IPresentationContext context) throws CoreException { 23 JavaOwnedMonitor monitor = (JavaOwnedMonitor) element; 24 return monitor.getWaitingThreads().length > 0; 25 } 26 27 } 28 | Popular Tags |