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.model.provisional.IPresentationContext; 15 import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate; 16 17 22 public class WaitingThreadContentProvider extends JavaElementContentProvider { 23 24 27 protected int getChildCount(Object element, IPresentationContext context, IViewerUpdate monitor) throws CoreException { 28 return ((JavaWaitingThread) element).getOwnedMonitors().length; 29 } 30 31 34 protected Object [] getChildren(Object parent, int index, int length, IPresentationContext context, IViewerUpdate monitor) throws CoreException { 35 return getElements(((JavaWaitingThread) parent).getOwnedMonitors(), index, length); 36 } 37 38 } 39 | Popular Tags |