1 11 package org.eclipse.jdt.internal.debug.core; 12 13 import org.eclipse.core.expressions.PropertyTester; 14 import org.eclipse.debug.core.DebugException; 15 import org.eclipse.debug.core.model.IStackFrame; 16 import org.eclipse.jdt.debug.core.IJavaStackFrame; 17 18 21 public class JavaDebugPropertyTester extends PropertyTester { 22 23 26 public boolean test(Object receiver, String property, Object [] args, Object expectedValue) { 27 if (property.equals("isMultiStrata")) { if (receiver instanceof IStackFrame) { 29 IJavaStackFrame frame = (IJavaStackFrame) ((IStackFrame)receiver).getAdapter(IJavaStackFrame.class); 30 if (frame != null) { 31 try { 32 return frame.getReferenceType().getAvailableStrata().length > 1; 33 } catch (DebugException e) { 34 } 35 } 36 } 37 } 38 return false; 39 } 40 41 } 42 | Popular Tags |