com.ptc.windchill.upgrade.tool
Class RetrievingState
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.RetrievingState
- public class RetrievingState
- 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 |
applicabilityModel_
private ApplicabilitySnapshotModel applicabilityModel_
viewComponent_
private JComponent viewComponent_
size_
private int size_
upgradeContext_
private UpgradeContext upgradeContext_
upgListener_
private UpgradeContextListener upgListener_
RetrievingState
public RetrievingState(StateMachine sm,
StateDefinition def)
- Creates a new RetrievingState object.
- Parameters:
sm
- StateMachinedef
- StateDefinition
getSizeOfApplicabilityModel
private final int getSizeOfApplicabilityModel()
- A getter method
- Returns:
- int size_ the size of the list of applicable migrators
getViewComponent
public JComponent getViewComponent()
- Creates the GUI look for the steps that use Incremental Updates.
It lets the user know that it is determining and retrieving the applicable
migrators. This required, so a screen is displayed at this state.
- Specified by:
getViewComponent
in class AbstractState
- Returns:
- JComponent the screen look for this state
runThreadedWork
protected AbstractStateWithThreadedWork.Outcome runThreadedWork()
throws Throwable
- This method executes other classes in a separate thread.
The view is updated through a listener.
- Specified by:
runThreadedWork
in class AbstractStateWithThreadedWork
- Returns:
- Outcome success or canceled.
- Throws:
Throwable
- Execution stopped due to a general error.
getUpgradeToolStateMachine
private UpgradeToolStateMachine getUpgradeToolStateMachine()
setSizeOfApplicabilityModel
private void setSizeOfApplicabilityModel()
getView
public JComponent getView()
- Accessor used to keep the RetrievingState panel private.
- Returns:
- The RetrievingState panel.