com.ptc.windchill.upgrade.tool
Class RetrievingState

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.RetrievingState

public class RetrievingState
extends AbstractStateWithThreadedWork


Nested Class Summary
static class RetrievingState.ApplicabilitySize
           
 
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
private  ApplicabilitySnapshotModel applicabilityModel_
           
private  int size_
           
private  UpgradeContextListener upgListener_
           
private  UpgradeContext upgradeContext_
           
private  JComponent viewComponent_
           
 
Fields inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
 
Fields inherited from class com.ptc.windchill.upgrade.util.fsm.State
 
Constructor Summary
RetrievingState(StateMachine sm, StateDefinition def)
          Creates a new RetrievingState object.
 
Method Summary
private  int getSizeOfApplicabilityModel()
          A getter method
private  UpgradeToolStateMachine getUpgradeToolStateMachine()
           
 JComponent getView()
          Accessor used to keep the RetrievingState panel private.
 JComponent getViewComponent()
          Creates the GUI look for the steps that use Incremental Updates.
protected  AbstractStateWithThreadedWork.Outcome runThreadedWork()
          This method executes other classes in a separate thread.
private  void setSizeOfApplicabilityModel()
           
 
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

applicabilityModel_

private ApplicabilitySnapshotModel applicabilityModel_

viewComponent_

private JComponent viewComponent_

size_

private int size_

upgradeContext_

private UpgradeContext upgradeContext_

upgListener_

private UpgradeContextListener upgListener_
Constructor Detail

RetrievingState

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

Parameters:
sm - StateMachine
def - StateDefinition
Method Detail

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.