com.ptc.windchill.upgrade.tool
Class AdvanceToNextStep

java.lang.Object
  extended bycom.ptc.windchill.upgrade.util.fsm.State
      extended bycom.ptc.windchill.upgrade.tool.AbstractState
          extended bycom.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
              extended bycom.ptc.windchill.upgrade.tool.AdvanceToNextStep

public class AdvanceToNextStep
extends AbstractStateWithThreadedWork


Nested Class Summary
static class AdvanceToNextStep.DetermineFirstStateForNextStep
           
 
Nested classes inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
AbstractState.NonExpressPhaseDone, AbstractStateWithThreadedWork.Cancel, AbstractStateWithThreadedWork.IsStateWithThreadedWorkDone, AbstractStateWithThreadedWork.IsThreadedWorkRunningAndNotCanceled, AbstractStateWithThreadedWork.Outcome, AbstractStateWithThreadedWork.WasThreadedWorkOutcomeSuccessful
 
Field Summary
(package private)  UpgradeStep advancedStep_
           
 
Fields inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
 
Fields inherited from class com.ptc.windchill.upgrade.util.fsm.State
 
Constructor Summary
AdvanceToNextStep(StateMachine sm, StateDefinition def)
          Creates a new AdvanceToNextStep object.
 
Method Summary
 UpgradeStep getAdvancedStep()
           
private  UpgradeToolStateMachine getUpgradeToolStateMachine()
           
 JComponent getViewComponent()
          Creates the panel for this sub-step.
protected  AbstractStateWithThreadedWork.Outcome runThreadedWork()
          A method that is requried by any class that extends AbstractStateWithThreadedWork.
 
Methods inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
activate, clearStatus, deactivate, getApplication, getCancellationMonitor, getCancelPromptMessage, getCancelPromptTitle, getTitle, onCancelRequested, setApplication, setStatus, shouldBeEnclosed, toString
 
Methods inherited from class com.ptc.windchill.upgrade.util.fsm.State
getStateMachine, getStateMachine, isStartState, isStopState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

advancedStep_

UpgradeStep advancedStep_
Constructor Detail

AdvanceToNextStep

public AdvanceToNextStep(StateMachine sm,
                         StateDefinition def)
Creates a new AdvanceToNextStep object.

Parameters:
sm - StateMachine argument that are required by classes that extend AbstractStateWithThreadedWork
def - StateDefinition argument that are required by classes that extend AbstractStateWithThreadedWork
Method Detail

getViewComponent

public JComponent getViewComponent()
Creates the panel for this sub-step. Panel is empty it really should not be seen. It is only seen when the network is slow.

Specified by:
getViewComponent in class AbstractState
Returns:
viewComponent_ the look of the panel on the right

runThreadedWork

protected AbstractStateWithThreadedWork.Outcome runThreadedWork()
                                                         throws Throwable
A method that is requried by any class that extends AbstractStateWithThreadedWork. Determines which step is to be advanced to next. There are a lot of things to take into consideration. It is determined by the database or values that are stored in UpgradeToolStateMachin are null.

Specified by:
runThreadedWork in class AbstractStateWithThreadedWork
Returns:
the outcome of this state
Throws:
Throwable - An unexpected error occurred

getAdvancedStep

public UpgradeStep getAdvancedStep()
Returns:
The step to be advanced to or returned to.

getUpgradeToolStateMachine

private UpgradeToolStateMachine getUpgradeToolStateMachine()