/* (non-Javadoc) * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction) */ @Override public void run(IAction action) { if (EngineDriver.getRunningInstance() != null) { EngineDriver.getRunningInstance().resume(); } else MessageDialog.openWarning( window.getShell(), "CoreASM Plug-in", "No engine is running." + action); }
@Override public void init(IAction action) { super.init(action); this.action = action; EngineDriver.addAction(this); action.setEnabled(false); }