|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
com.ptc.windchill.upgrade.tool.UpgradeManager
Nested Class Summary | |
private class |
UpgradeManager.ExitListener
|
private class |
UpgradeManager.GuiUpdater
|
private class |
UpgradeManager.PreventResizeToSmallerThanMinSize
|
private class |
UpgradeManager.StateMachineStarter
|
Nested classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface wt.util.WTAttributeNameIfc |
CREATE_STAMP_NAME, ID_NAME, LATEST_ITERATION, LINK_REFA, LINK_REFB, MODIFY_STAMP_NAME, OBJECT_IDENTIFIER, OID_CLASSNAME, PERSIST_INFO, REF_CLASSNAME, REF_OBJECT_ID, REF_SUFFIX, ROLE_AOBJECT_ROLE, ROLE_BOBJECT_ROLE, ROLEA_CLASSNAME, ROLEA_OBJECT_ID, ROLEA_VERSION_ID, ROLEB_CLASSNAME, ROLEB_OBJECT_ID, ROLEB_VERSION_ID, UPDATE_COUNT_NAME, UPDATE_STAMP_NAME |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
UpgradeManager()
Creates a new UpgradeManager object. |
Method Summary | |
void |
addUpgradeContextListener(UpgradeContextListener new_listener)
Adding the UpgradeContextListener to the UpgradeManager, to be used with changing the icons before, during, and after each step. |
private void |
checkThatUpgradeIsSupported()
|
private void |
clearContents()
Clears the existing component inside that section to be replaced by a new one. |
void |
clearStatus()
Clears out the value in the status label |
private JPanel |
createButtonBar()
|
private ArrayList |
createStepList()
Creates the list to be seen on the left-hand side list |
private static void |
displayUsage()
Message displayed to the screen when typing UpgradeManager -h or an incorrect argument is added to the end of the command. |
private void |
doEnablings()
|
static void |
dumpProps(String extension)
|
private static void |
exportDataBaseIUhistoryOption(Object opt_value)
|
private static String |
getLogFileName()
Creates the log file for the Upgrade Manager called UpgradeManager.logs which is located under the Windchill/logs directory. |
int |
getMinimumHeight()
User will not be able to reduce the height of the UpgradeManager below 440. |
int |
getMinimumWidth()
User will not be able to reduce the height of the UpgradeManager below 600. |
private static File |
getPropertiesFile()
|
PhaseTitleSideBanner |
getSideBanner()
A getter method of the left hand side list |
private static WTProperties |
getWtProperties()
|
private static void |
importDataBaseIUhistoryOption(Object opt_value)
|
protected void |
init(String[] args)
Initializes all the necessary areas of the Upgrade Manager. |
private void |
initControls()
Adding the UpgradeContextListener to the UpgradeManager, to be used with changing the icons for each step. |
private void |
initGuiListeners()
|
private void |
initOtherListeners()
|
private void |
initStateMachine()
Initializes the correct StateMachine and intializes debugging if the correct argument was provided. |
private boolean |
isCompareSchemaOnly()
|
private void |
layoutControls()
|
private static void |
listIUsOption()
|
private void |
loadPreferences()
|
static void |
main(String[] args)
Initializes the start of the Upgrade Manager |
private static void |
newIUOption()
|
private static boolean |
remainingArgsLookLikeInvalidOptions(String[] unprocessed_args)
|
private static void |
renderDepsOption(Object opt_value,
String[] unprocessed_args)
|
private void |
savePreferences()
|
private void |
setContents(String title,
JComponent new_component,
boolean to_scroll)
Sets the component for the new step. |
private void |
setContentsAndRefresh(String title,
JComponent new_component,
boolean enclose)
|
private void |
setIsCompareSchemaOnly(boolean is_cs_only)
|
void |
setSideBanner()
Creates the list of steps to be completed |
void |
setStatus(String status_message)
Displays the message in the statusLabel_. |
private void |
showUnexpectedErrorMessage(Throwable throwable)
|
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
private static final String NEW_IU_OPTION_NAME
private static final String LIST_IUS_OPTION_NAME
private static final String RENDER_DEPS_OPTION_NAME
private static final String EXPORT_DB_IUHISTORY_OPTION_NAME
private static final String COMPARE_SCHEMA_ONLY_OPTION_NAME
private static final String IMPORT_DB_IUHISTORY_OPTION_NAME
private static final String PROPERTIES_FILE_NAME
private static final String DEBUG
private static final String HELP
private static final String VERBOSE
private static final String TITLE_ICON_PATH
private static final String TITLE_ICON
private static StateMachine stateMachine_
private static boolean restarted_
private JLabel currentStateDescLabel_
private static JButton continueButton_
private JButton restartButton_
private JButton cancelButton_
private JButton stopButton_
private JPanel buttonBar_
private PhaseTitleSideBanner sideBanner_
private UpgradeContextListener upgListener_
private static boolean isCompareSchemaOnly_
private String modeAndTitle_
private static String className_
private static String logFileName
private static String[] upgradeToolPhaseList_
private static JList upgradeToolPhaseJList_
private JLabel statusLabel_
private JComponent stateComponent_
static final String ENABLE_PRE_CERTIFIED_UPGRADE_SUPPORT_PROPERTY
private UpgradeManager theApplication_
private static int propDumpIteration
Constructor Detail |
public UpgradeManager()
Method Detail |
private void setIsCompareSchemaOnly(boolean is_cs_only)
private boolean isCompareSchemaOnly()
protected void init(String[] args) throws UpgradeContextException
args
- The arguments that are passed in when starting the UpgradeManager
UpgradeContextException
- initStateMachine is calledprivate void initStateMachine()
public void addUpgradeContextListener(UpgradeContextListener new_listener)
new_listener
- An instance of PhaseTitleSideBanner that implements UpgradeContextListenerprivate void initControls() throws UpgradeContextException
UpgradeContextException
private void layoutControls()
private void setContents(String title, JComponent new_component, boolean to_scroll)
title
- Stringnew_component
- JComponentto_scroll
- boolean
RuntimeException
- When a state occurs that it does not know how to handleprivate void setContentsAndRefresh(String title, JComponent new_component, boolean enclose)
private void clearContents()
private void initGuiListeners()
private void initOtherListeners() throws UpgradeContextException
UpgradeContextException
private JPanel createButtonBar()
private void doEnablings()
private void showUnexpectedErrorMessage(Throwable throwable)
public int getMinimumWidth()
public int getMinimumHeight()
public static void main(String[] args)
args
- arguments passed in when UpgradeManager is startedprivate static void newIUOption()
private static void listIUsOption()
private static void renderDepsOption(Object opt_value, String[] unprocessed_args)
private static void importDataBaseIUhistoryOption(Object opt_value)
private static void exportDataBaseIUhistoryOption(Object opt_value)
private void checkThatUpgradeIsSupported() throws IOException
IOException
private static boolean remainingArgsLookLikeInvalidOptions(String[] unprocessed_args)
private static WTProperties getWtProperties() throws IOException
IOException
private static String getLogFileName() throws IOException
IOException
private static void displayUsage()
public void setStatus(String status_message)
private ArrayList createStepList()
public void setSideBanner() throws UpgradeContextException
UpgradeContextException
- thrown if an UpgradeContext instance does not already existpublic PhaseTitleSideBanner getSideBanner()
public void clearStatus()
private void loadPreferences()
private void savePreferences()
private static File getPropertiesFile()
public static void dumpProps(String extension)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |