blob: fe8d52f885ac3578bff9b77d3f2b8e4ca5bae68f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Pawel Piech - bug 134177
*******************************************************************************/
package org.eclipse.debug.internal.ui.actions.context;
import org.eclipse.debug.internal.ui.actions.provisional.IBooleanRequestMonitor;
public abstract class StepAction extends AbstractDebugContextAction {
/*
* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.context.AbstractDebugContextAction#doAction(java.lang.Object)
*/
protected void doAction(Object object) {
stepAction(object);
}
/*
* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.actions.context.AbstractDebugContextAction#isEnabledFor(java.lang.Object)
*/
protected void isEnabledFor(Object element, IBooleanRequestMonitor monitor) {
checkCapability(element, monitor);
}
protected abstract void checkCapability(Object element, IBooleanRequestMonitor monitor);
/**
* Performs the specific step action.
*
* @exception DebugException if the action fails
*/
protected abstract void stepAction(Object element);
}