com.ptc.windchill.upgrade.tool
Class UpgradeSchemaCompleted

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

public class UpgradeSchemaCompleted
extends AbstractStateWithThreadedWork


Nested Class Summary
static class UpgradeSchemaCompleted.AllowNextStep
           
static class UpgradeSchemaCompleted.UpgradeSchemaCanceled
           
 
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  Color bgColor_
           
private  SimpleAttributeSet boldStep_
           
private  int bottom_
           
(package private)  CancellationMonitor cancellationMonitor_
           
private  UpgradeContext context_
           
private  Document document_
           
private  JTextPane jTextPane_
           
private  int left_
           
private  UpgradePhaseType phaseJustExecuted_
           
private  int right_
           
private  SchemaResults schemaResults_
           
private  String stringPhaseJustExecuted_
           
private  int top_
           
private  File upgradeSchemaWorkSpoolStandard_
           
private  URL upgradeSchemaWorkSpoolUrl_
           
private  UpgradeToolStateMachine upgradeToolStateMachine_
           
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
UpgradeSchemaCompleted(StateMachine sm, StateDefinition def)
           
 
Method Summary
protected  void activate(Event activating_event)
          IF YOU OVERRIDE, YOU MUST CALL, super.activate(...); Already overwrites due to: extends AbstractState -to- State
 boolean canceled()
           
private  void defaultLook(GridBagConstraints gbc, int i)
           
 UpgradePhaseType getTheUpgradePhaseType()
           
private  URL getUpgradeSchemaWorkSpoolUrl()
           
 JComponent getViewComponent()
           
protected  AbstractStateWithThreadedWork.Outcome runThreadedWork()
          Subtypes must implement to perform work upon state activation.
private  JComponent updateViewWithResults()
           
 
Methods inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
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

upgradeToolStateMachine_

private UpgradeToolStateMachine upgradeToolStateMachine_

context_

private UpgradeContext context_

viewComponent_

private JComponent viewComponent_

phaseJustExecuted_

private UpgradePhaseType phaseJustExecuted_

stringPhaseJustExecuted_

private String stringPhaseJustExecuted_

upgradeSchemaWorkSpoolStandard_

private File upgradeSchemaWorkSpoolStandard_

upgradeSchemaWorkSpoolUrl_

private URL upgradeSchemaWorkSpoolUrl_

schemaResults_

private SchemaResults schemaResults_

top_

private int top_

left_

private int left_

bottom_

private int bottom_

right_

private int right_

jTextPane_

private JTextPane jTextPane_

document_

private Document document_

boldStep_

private SimpleAttributeSet boldStep_

bgColor_

private Color bgColor_

cancellationMonitor_

CancellationMonitor cancellationMonitor_
Constructor Detail

UpgradeSchemaCompleted

public UpgradeSchemaCompleted(StateMachine sm,
                              StateDefinition def)
Method Detail

getViewComponent

public JComponent getViewComponent()
Specified by:
getViewComponent in class AbstractState

activate

protected void activate(Event activating_event)
Description copied from class: AbstractStateWithThreadedWork
IF YOU OVERRIDE, YOU MUST CALL, super.activate(...); Already overwrites due to: extends AbstractState -to- State

Overrides:
activate in class AbstractStateWithThreadedWork

runThreadedWork

protected AbstractStateWithThreadedWork.Outcome runThreadedWork()
                                                         throws Throwable
Description copied from class: AbstractStateWithThreadedWork
Subtypes must implement to perform work upon state activation.

Specified by:
runThreadedWork in class AbstractStateWithThreadedWork
Returns:
MUST BE NON-NULL
Throws:
Throwable

updateViewWithResults

private JComponent updateViewWithResults()
                                  throws IUHException
Throws:
IUHException

defaultLook

private void defaultLook(GridBagConstraints gbc,
                         int i)

getTheUpgradePhaseType

public UpgradePhaseType getTheUpgradePhaseType()

getUpgradeSchemaWorkSpoolUrl

private URL getUpgradeSchemaWorkSpoolUrl()

canceled

public boolean canceled()