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