com.ptc.windchill.upgrade.tool
Class PhaseCompleted.PhaseCanceled

java.lang.Object
  extended bycom.ptc.windchill.upgrade.tool.PhaseCompleted.PhaseCanceled
All Implemented Interfaces:
Condition
Enclosing class:
PhaseCompleted

public static class PhaseCompleted.PhaseCanceled
extends Object
implements Condition

An inner class used by UpgradeToolStateMachineDefinition to determine which buttons should be enabled.


Field Summary
 
Fields inherited from interface com.ptc.windchill.upgrade.util.fsm.Condition
ALWAYS
 
Constructor Summary
PhaseCompleted.PhaseCanceled()
          Creates a new PhaseCanceled object.
 
Method Summary
 boolean evaluate(State state)
          Checks if the stop button was selected when the migrators were being executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhaseCompleted.PhaseCanceled

public PhaseCompleted.PhaseCanceled()
Creates a new PhaseCanceled object.

Method Detail

evaluate

public final boolean evaluate(State state)
Checks if the stop button was selected when the migrators were being executed. If true is returned, the 'Close' button will be enabled and the 'Stop' button will be disabled. If false is returned, the 'Stop' button will be enabled and the 'Close' button will be disabled.

Specified by:
evaluate in interface Condition
Parameters:
state - State
Returns:
ret boolean value