1 /******************************************************************************* 2 * Copyright (c) 2000, 2011 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.jdt.internal.debug.ui.actions; 15 16 17 import org.eclipse.debug.core.DebugException; 18 import org.eclipse.jdt.debug.core.IJavaStackFrame; 19 20 /** 21 * Adds a Java type to the set of active step filters. 22 */ 23 public class AddTypeStepFilterAction extends AbstractAddStepFilterAction { 24 25 /** 26 * @see org.eclipse.jdt.internal.debug.ui.actions.AbstractAddStepFilterAction#generateStepFilterPattern(org.eclipse.jdt.debug.core.IJavaStackFrame) 27 */ 28 @Override generateStepFilterPattern(IJavaStackFrame frame)29 protected String generateStepFilterPattern(IJavaStackFrame frame) { 30 try { 31 return frame.getDeclaringTypeName(); 32 } catch (DebugException de) { 33 return null; 34 } 35 } 36 37 } 38