|
|||||||||||
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
Nested Class Summary | |
(package private) static class |
AbstractState.NonExpressPhaseDone
|
(package private) static class |
AbstractStateWithThreadedWork.Cancel
|
static class |
AbstractStateWithThreadedWork.IsStateWithThreadedWorkDone
|
static class |
AbstractStateWithThreadedWork.IsThreadedWorkRunningAndNotCanceled
|
class |
AbstractStateWithThreadedWork.Outcome
Result object for threaded work. |
static class |
AbstractStateWithThreadedWork.WasThreadedWorkOutcomeSuccessful
|
Field Summary | |
private ThreadedCancelConfirmPrompt |
cancelConfirmPrompt_
|
private AbstractStateWithThreadedWork.Outcome |
outcome_
|
private Thread |
workerThread_
|
Fields inherited from class com.ptc.windchill.upgrade.util.fsm.State |
|
Constructor Summary | |
AbstractStateWithThreadedWork(StateMachine sm,
StateDefinition def)
|
|
AbstractStateWithThreadedWork(StateMachine sm,
StateDefinition def,
String title)
|
Method Summary | |
protected void |
activate(Event activating_event)
IF YOU OVERRIDE, YOU MUST CALL, super.activate(...); Already overwrites due to: extends AbstractState -to- State |
protected void |
clearStatus()
|
private void |
closeCancelPrompt()
|
protected void |
deactivate(Event deactivating_event)
IF YOU OVERRIDE, YOU MUST CALL, super.deactivate(...); Already overwrites due to: extends AbstractState -to- State |
protected static UpgradeManager |
getApplication()
|
private ThreadedCancelConfirmPrompt |
getCancelConfirmPrompt()
|
private ThreadedCancelConfirmPrompt |
getCancelConfirmPrompt(boolean create_if_null)
|
protected CancellationMonitor |
getCancellationMonitor()
Provide the cancellation monitor to subtypes if they want it(rather than pass it to them). |
protected String |
getCancelPromptMessage()
Subtypes MAY override this to provide a cancel prompt message that differs from the default "Are you sure that you'd like to cancel?" Subtypes should not call super.getCancelPromptMessage() if they override. |
protected String |
getCancelPromptTitle()
Subtypes MAY override this to provided a cancel prompt title that differs from the default "Cancel &060;title&062;?" Subtypes should not call super.getCancelPromptTitle() if they override. |
String |
getTitle()
|
(package private) abstract JComponent |
getViewComponent()
|
private boolean |
isThreadedWorkFinished()
|
private void |
markThreadedWorkFinished()
Once called, cancel confirm prompt may not be opened (even if cancel reaction is invoked. |
protected void |
onCancelRequested()
Provided to allow subtypes to do stuff when cancellation has been confirmed. |
private void |
requestCancel()
|
protected abstract AbstractStateWithThreadedWork.Outcome |
runThreadedWork()
Subtypes must implement to perform work upon state activation. |
(package private) void |
setApplication(UpgradeManager x)
|
protected void |
setStatus(String status_message)
Displays the messgae provided by some of the phases of what is currently being done. |
protected boolean |
shouldBeEnclosed()
Can be overriden by sub-classes. |
String |
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 ThreadedCancelConfirmPrompt cancelConfirmPrompt_
private Thread workerThread_
private AbstractStateWithThreadedWork.Outcome outcome_
Constructor Detail |
public AbstractStateWithThreadedWork(StateMachine sm, StateDefinition def)
public AbstractStateWithThreadedWork(StateMachine sm, StateDefinition def, String title)
Method Detail |
protected abstract AbstractStateWithThreadedWork.Outcome runThreadedWork() throws Throwable
Throwable
protected void onCancelRequested()
protected String getCancelPromptTitle()
protected String getCancelPromptMessage()
protected final CancellationMonitor getCancellationMonitor()
protected void activate(Event activating_event)
activate
in class State
protected void deactivate(Event deactivating_event)
deactivate
in class State
private boolean isThreadedWorkFinished()
private void markThreadedWorkFinished()
private void requestCancel()
private void closeCancelPrompt()
private final ThreadedCancelConfirmPrompt getCancelConfirmPrompt()
private ThreadedCancelConfirmPrompt getCancelConfirmPrompt(boolean create_if_null)
abstract JComponent getViewComponent()
void setApplication(UpgradeManager x)
protected static UpgradeManager getApplication()
protected final void setStatus(String status_message)
protected final void clearStatus()
public String getTitle()
public String toString()
protected boolean shouldBeEnclosed()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |