Пример #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());
 }