1 11 package org.eclipse.debug.internal.ui.actions; 12 13 14 15 import org.eclipse.debug.core.DebugException; 16 import org.eclipse.debug.core.model.IStep; 17 18 public abstract class StepActionDelegate extends AbstractListenerActionDelegate { 19 20 23 protected void doAction(Object object) throws DebugException { 24 if (object instanceof IStep) { 25 stepAction((IStep)object); 26 } 27 } 28 29 32 protected boolean isRunInBackground() { 33 return true; 34 } 35 36 39 protected boolean isEnabledFor(Object element) { 40 if (element instanceof IStep) { 41 return checkCapability((IStep)element); 42 } 43 return false; 44 } 45 46 50 protected abstract boolean checkCapability(IStep element); 51 52 57 protected abstract void stepAction(IStep element) throws DebugException; 58 } 59 | Popular Tags |