\r
if (arg0.getSource() == this.jMenuItemFileCloseAll) {\r
this.closeAll();\r
+ this.makeEmptyTree();\r
}\r
\r
if (arg0.getSource() == this.jMenuItemFileSave) {\r
GlobalData.openingModuleList.closeAll();\r
GlobalData.openingPackageList.closeAll();\r
GlobalData.openingPlatformList.closeAll();\r
- this.makeEmptyTree();\r
+ }\r
+\r
+ /**\r
+ Refresh all global data from disk to memory\r
+ \r
+ **/\r
+ private void refresh() {\r
+ GlobalData.init();\r
}\r
\r
/**\r
JOptionPane.showConfirmDialog(null, strReturn, "Done", JOptionPane.DEFAULT_OPTION,\r
JOptionPane.INFORMATION_MESSAGE);\r
this.closeAll();\r
+ this.refresh();\r
+ this.makeEmptyTree();\r
}\r
iso.dispose();\r
}\r
JOptionPane.showConfirmDialog(null, strReturn, "Done", JOptionPane.DEFAULT_OPTION,\r
JOptionPane.INFORMATION_MESSAGE);\r
this.closeAll();\r
+ this.refresh();\r
+ this.makeEmptyTree();\r
}\r
dso.dispose();\r
}\r
JOptionPane.showConfirmDialog(null, strReturn, "Done", JOptionPane.DEFAULT_OPTION,\r
JOptionPane.INFORMATION_MESSAGE);\r
this.closeAll();\r
+ this.refresh();\r
+ this.makeEmptyTree();\r
}\r
uso.dispose();\r
}\r
\r
private JTextArea jDescriptionTextArea = null;\r
\r
- // private JLabel jLabelSpecification = null;\r
-\r
private JTextField jSpecificationTextField = null;\r
\r
- private JButton jButtonOk = null;\r
-\r
- private JButton jButtonCancel = null;\r
-\r
private JScrollPane jLicenseScrollPane = null;\r
\r
private JScrollPane jDescriptionScrollPane = null;\r
return jSpecificationTextField;\r
}\r
\r
- /**\r
- This method initializes jButtonOk \r
- \r
- @return javax.swing.JButton jButtonOk\r
- \r
- **/\r
- private JButton getJButtonOk() {\r
- if (jButtonOk == null) {\r
- jButtonOk = new JButton();\r
- jButtonOk.setText("OK");\r
- jButtonOk.setBounds(new java.awt.Rectangle(290, 445, 90, oneRowHeight));\r
- jButtonOk.setVisible(false);\r
- jButtonOk.addActionListener(this);\r
- }\r
- return jButtonOk;\r
- }\r
-\r
- /**\r
- This method initializes jButtonCancel \r
- \r
- @return javax.swing.JButton jButtonCancel\r
- \r
- **/\r
- private JButton getJButtonCancel() {\r
- if (jButtonCancel == null) {\r
- jButtonCancel = new JButton();\r
- jButtonCancel.setText("Cancel");\r
- jButtonCancel.setBounds(new java.awt.Rectangle(390, 445, 90, oneRowHeight));\r
- jButtonCancel.setVisible(false);\r
- jButtonCancel.addActionListener(this);\r
- }\r
- return jButtonCancel;\r
- }\r
-\r
/**\r
This method initializes jLicenseScrollPane \r
\r
package org.tianocore.frameworkwizard.platform.ui;\r
\r
import java.awt.BorderLayout;\r
-import javax.swing.BoxLayout;\r
\r
import javax.swing.JPanel;\r
import javax.swing.JTabbedPane;\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
-import org.tianocore.frameworkwizard.common.ui.ArchCheckBox;\r
\r
import java.io.File;\r
import java.util.ArrayList;\r
\r
private final int twoRowHeight = 40;\r
\r
- private final int threeRowHeight = 60;\r
-\r
private final int sepHeight = 6;\r
\r
private final int sepWidth = 10;\r
\r
private final int firstButtonLoc = next2LastButtonLoc - buttonWidth - sepWidth;\r
\r
- private final int starColumn = 2;\r
-\r
private final int labelColumn = 12;\r
\r
private final int fieldColumn = 168;\r
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
import org.tianocore.frameworkwizard.platform.PlatformIdentification;\r
import org.tianocore.PlatformSurfaceAreaDocument;\r
-import org.tianocore.frameworkwizard.toolchain.ToolChainId;\r
\r
/**\r
* The class is used to update the target.txt file.\r