1 11 package org.eclipse.debug.ui; 12 13 import org.eclipse.core.runtime.IProgressMonitor; 14 import org.eclipse.core.runtime.jobs.ISchedulingRule; 15 import org.eclipse.ui.progress.IDeferredWorkbenchAdapter; 16 import org.eclipse.ui.progress.IElementCollector; 17 18 19 30 public abstract class DeferredDebugElementWorkbenchAdapter extends DebugElementWorkbenchAdapter implements IDeferredWorkbenchAdapter { 31 32 35 protected static final Object [] EMPTY = new Object [0]; 36 37 40 public boolean isContainer() { 41 return true; 42 } 43 44 47 public ISchedulingRule getRule(Object object) { 48 return null; 49 } 50 51 54 public void fetchDeferredChildren(Object object, IElementCollector collector, IProgressMonitor monitor) { 55 if (monitor.isCanceled()) { 56 return; 57 } 58 Object [] children = getChildren(object); 59 if (monitor.isCanceled()) { 60 return; 61 } 62 if (children.length > 0) { 63 collector.add(children, monitor); 64 } 65 collector.done(); 66 } 67 68 69 } 70 | Popular Tags |