1 11 package org.eclipse.jdt.internal.debug.core.logicalstructures; 12 13 import org.eclipse.core.runtime.IProgressMonitor; 14 import org.eclipse.debug.core.DebugException; 15 import org.eclipse.jdt.debug.core.IEvaluationRunnable; 16 import org.eclipse.jdt.debug.core.IJavaThread; 17 18 21 public class CollectionStructureType extends LogicalObjectStructureInterfaceType { 22 23 26 protected IEvaluationRunnable getEvaluation() { 27 return new IEvaluationRunnable() { 28 31 public void run(IJavaThread thread, IProgressMonitor monitor) throws DebugException { 32 setLogicalStructure(getObject().sendMessage("toArray", "()[Ljava/lang/Object;", null, thread, false)); } 34 35 }; 36 } 37 38 41 protected String getTargetInterfaceName() { 42 return "java.util.Collection"; } 44 45 } 46 | Popular Tags |