KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > actions > context > StepAction


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  * Pawel Piech - bug 134177
11  *******************************************************************************/

12
13 package org.eclipse.debug.internal.ui.actions.context;
14
15 import org.eclipse.debug.internal.ui.actions.provisional.IBooleanRequestMonitor;
16
17 public abstract class StepAction extends AbstractDebugContextAction {
18     
19     /*
20      * (non-Javadoc)
21      * @see org.eclipse.debug.internal.ui.actions.context.AbstractDebugContextAction#doAction(java.lang.Object)
22      */

23     protected void doAction(Object JavaDoc object) {
24         stepAction(object);
25     }
26
27     /*
28      * (non-Javadoc)
29      * @see org.eclipse.debug.internal.ui.actions.context.AbstractDebugContextAction#isEnabledFor(java.lang.Object)
30      */

31     protected void isEnabledFor(Object JavaDoc element, IBooleanRequestMonitor monitor) {
32         checkCapability(element, monitor);
33     }
34
35
36     protected abstract void checkCapability(Object JavaDoc element, IBooleanRequestMonitor monitor);
37     /**
38      * Performs the specific step action.
39      *
40      * @exception DebugException if the action fails
41      */

42     protected abstract void stepAction(Object JavaDoc element);
43 }
44
Popular Tags