1 11 package org.eclipse.jdt.internal.debug.ui.actions; 12 13 14 import org.eclipse.debug.core.DebugException; 15 import org.eclipse.jdt.debug.core.IJavaStackFrame; 16 17 20 public class AddPackageStepFilterAction extends AbstractAddStepFilterAction { 21 22 25 protected String generateStepFilterPattern(IJavaStackFrame frame) { 26 String typeName; 27 try { 28 typeName = frame.getDeclaringTypeName(); 29 } catch (DebugException de) { 30 return null; 31 } 32 33 int lastDot = typeName.lastIndexOf('.'); 35 if (lastDot < 0) { 36 return null; 37 } 38 39 String packageName = typeName.substring(0, lastDot + 1); 41 packageName += '*'; 42 return packageName; 43 } 44 45 } 46 | Popular Tags |