|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.util.fsm.State
com.ptc.windchill.upgrade.tool.AbstractState
com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
com.ptc.windchill.upgrade.tool.PhaseCompleted
Nested Class Summary | |
static class |
PhaseCompleted.PhaseCanceled
An inner class used by UpgradeToolStateMachineDefinition to determine which buttons should be enabled. |
static class |
PhaseCompleted.ReportNumberOfFailures
An inner class used by UpgradeToolStateMachineDefinition to determine the next state or which buttons to enable. |
Field Summary | |
private Color |
background_color
|
private SimpleAttributeSet |
bold_step
|
private CancellationMonitor |
cancellationMonitor_
|
private UpgradeContext |
context_
|
private JTextPane |
creating_
|
private int |
executed_
|
private int |
failed_
|
private static String |
LINE_SEPARATOR
|
private UpgradePhaseType |
phaseJustExecuted_
|
private ReportStyler |
reportStyler_
|
private int |
skipped_
|
private Document |
status_message
|
private String |
stringPhaseJustExecuted_
|
private int |
successful_
|
private URL |
updateReportURL_
|
private UpdateRunnerResults |
updateRunnerResults_
|
private UpgradeToolStateMachine |
upgToolStateMachine_
|
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 | |
PhaseCompleted(StateMachine sm,
StateDefinition def)
Creates a new PhaseCompleted object. |
Method Summary | |
protected void |
activate(Event activating_event)
A method that is available to classes that implement AbstractStateWithThreadedWork. |
private void |
checkForCancellation()
|
boolean |
getCanceled()
Checks if the phase the report is being generated for was canceled |
private int |
getNumberOfFailedMigrators()
|
private int |
getNumberOfSkippedMigrators()
|
private int |
getNumberOfSuccessfulMigrators()
|
private File |
getPhaseReportDirectory()
|
private String |
getReportName()
|
UpgradePhaseType |
getTheUpgradePhaseType()
|
URL |
getTheURL()
|
private int |
getTotalSize()
|
private String |
getUpgradePhaseValue()
|
private UpgradeToolStateMachine |
getUpgradeToolStateMachine()
|
JComponent |
getViewComponent()
This is displayed when the user first comes to this state. |
protected AbstractStateWithThreadedWork.Outcome |
runThreadedWork()
Other methods are executed in a different thread. |
private void |
setValues(UpdateRunnerResults update_runner_results)
Setting values to variables that are needed through out PhaseCompleted that were mainly retrieved from updateRunnerResults_. |
protected boolean |
shouldBeEnclosed()
Can be overriden by sub-classes. |
private JComponent |
updateViewWithResults()
Once the report for the phase has been completely generated the viewComponent_ is updated and displayed to the user. |
Methods inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork |
clearStatus, deactivate, getApplication, getCancellationMonitor, getCancelPromptMessage, getCancelPromptTitle, getTitle, onCancelRequested, setApplication, setStatus, 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 |
private JTextPane creating_
private int executed_
private int failed_
private int skipped_
private int successful_
private String stringPhaseJustExecuted_
private URL updateReportURL_
private JComponent viewComponent_
private static String LINE_SEPARATOR
private UpgradeContext context_
private ReportStyler reportStyler_
private UpdateRunnerResults updateRunnerResults_
private UpgradePhaseType phaseJustExecuted_
private UpgradeToolStateMachine upgToolStateMachine_
private CancellationMonitor cancellationMonitor_
private SimpleAttributeSet bold_step
private Document status_message
private Color background_color
Constructor Detail |
public PhaseCompleted(StateMachine sm, StateDefinition def)
sm
- StateMachine - Required because it implements AbstractStateWithThreadedWorkdef
- StateDefinition - Required because it implements AbstractStateWithThreadedWorkMethod Detail |
protected boolean shouldBeEnclosed()
AbstractState
shouldBeEnclosed
in class AbstractState
public JComponent getViewComponent()
getViewComponent
in class AbstractState
protected void activate(Event activating_event)
activate
in class AbstractStateWithThreadedWork
activating_event
- private void setValues(UpdateRunnerResults update_runner_results) throws Throwable
Throwable
private JComponent updateViewWithResults() throws IUHException, DirectiveExecutionException, BadLocationException
IUHException
DirectiveExecutionException
BadLocationException
public UpgradePhaseType getTheUpgradePhaseType()
private File getPhaseReportDirectory()
private String getReportName()
public URL getTheURL()
public boolean getCanceled()
private int getNumberOfFailedMigrators()
private int getNumberOfSkippedMigrators()
private int getNumberOfSuccessfulMigrators()
private UpgradeToolStateMachine getUpgradeToolStateMachine()
private int getTotalSize()
private String getUpgradePhaseValue()
protected AbstractStateWithThreadedWork.Outcome runThreadedWork() throws CanceledException, Throwable
runThreadedWork
in class AbstractStateWithThreadedWork
CanceledException
- If the user clicks "Cancel" button
Throwable
- If an unexpected error occursprivate void checkForCancellation() throws CanceledException
CanceledException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |