com.ptc.windchill.upgrade.tool
Class AdvanceToNextStep
java.lang.Object
com.ptc.windchill.upgrade.util.fsm.State
com.ptc.windchill.upgrade.tool.AbstractState
com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
com.ptc.windchill.upgrade.tool.AdvanceToNextStep
- public class AdvanceToNextStep
- extends AbstractStateWithThreadedWork
Fields inherited from class com.ptc.windchill.upgrade.util.fsm.State |
|
Methods inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork |
activate, clearStatus, deactivate, getApplication, getCancellationMonitor, getCancelPromptMessage, getCancelPromptTitle, getTitle, onCancelRequested, setApplication, setStatus, shouldBeEnclosed, toString |
advancedStep_
UpgradeStep advancedStep_
AdvanceToNextStep
public AdvanceToNextStep(StateMachine sm,
StateDefinition def)
- Creates a new AdvanceToNextStep object.
- Parameters:
sm
- StateMachine argument that are required by classes that extend AbstractStateWithThreadedWorkdef
- StateDefinition argument that are required by classes that extend AbstractStateWithThreadedWork
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()