com.ptc.windchill.upgrade.tool
Class VerifySolutionsInstalled
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.VerifySolutionsInstalled
- public class VerifySolutionsInstalled
- 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 |
viewComponent_
private JComponent viewComponent_
upgListener_
private UpgradeContextListener upgListener_
retrieving_
private WrappingMultiLineTextMessage retrieving_
context_
private UpgradeContext context_
tooManyOrNot_
private boolean tooManyOrNot_
notEnough_
private boolean notEnough_
onlyOne_
private WrappingMultiLineTextMessage onlyOne_
LINE_SEPARATOR
private static String LINE_SEPARATOR
VerifySolutionsInstalled
public VerifySolutionsInstalled(StateMachine sm,
StateDefinition def)
- Creates a new VerifySolutionsInstalled object.
- Parameters:
sm
- StateMachinedef
- StateMachineDefinition
getViewComponent
public JComponent getViewComponent()
- Creates and displays the view displayed to the user.
- Specified by:
getViewComponent
in class AbstractState
- Returns:
- viewComponent_ JComponent
runThreadedWork
protected AbstractStateWithThreadedWork.Outcome runThreadedWork()
throws ReleaseIdException,
UpgradeContextException
- Checks the InstalledAssemblyRegistry.iar file in the <wt_hom>\codebase\assemblyRegistry directory
to find out what solutions are installed. If more than one interoperable solution is installed a message
will be displayed that PTC does not support an upgrade with more than one interoperable solution and will not
be able to proceed. If only one interoperable solution is installed they will be informed and they will be able
to proceed with the upgrade.
- Specified by:
runThreadedWork
in class AbstractStateWithThreadedWork
- Returns:
- returns Outcome(true) when everything worked correctly or Outcome(false) if an error occurred
- Throws:
ReleaseIdException
UpgradeContextException
getInstalledTooManySolutions
public boolean getInstalledTooManySolutions()
- If this is true the UpgradeManager will not let the user proceed to the next step.
If this is false the UpgradeManager will let the user proceed to the next step.
- Returns:
- boolean
getInstalledNotEnoughSolutions
public boolean getInstalledNotEnoughSolutions()