@Override public void run() { if (ForgeRuntimeState.STOPPED.equals(runtime.getState())) return; ForgeHelper.stop(runtime); }
@Override public boolean isEnabled() { return ForgeRuntimeState.RUNNING.equals(runtime.getState()); }
public StopAction(ForgeRuntime runtime) { super(); this.runtime = runtime; setImageDescriptor(createImageDescriptor()); setToolTipText("Stop " + runtime.getName()); }