]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/installui/InstallStepOne.java
Fix EDKT263. Change save dialog to open dialog. Update all Frame's titles.
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / far / installui / InstallStepOne.java
index fabee7a8cd06664c9b436da0573d9cf98f098e5f..bfc84486a7124d8b0b78b8a4dfc8631678bb3a15 100644 (file)
@@ -38,6 +38,7 @@ import org.tianocore.frameworkwizard.common.ui.IDialog;
 import org.tianocore.frameworkwizard.common.ui.IFrame;\r
 import org.tianocore.frameworkwizard.far.DistributeRule;\r
 import org.tianocore.frameworkwizard.far.Far;\r
+import org.tianocore.frameworkwizard.far.FarStringDefinition;\r
 import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
 import org.tianocore.frameworkwizard.workspace.Workspace;\r
 \r
@@ -220,7 +221,7 @@ public class InstallStepOne extends IDialog implements MouseListener {
     private void initialize() {\r
         this.setSize(700, 400);\r
         this.setContentPane(getJContentPane());\r
-        this.setTitle("Install Framework Archive(FAR) - Step 1: Choose FAR file");\r
+        this.setTitle(FarStringDefinition.INSTALL_STEP_ONE_TITLE);\r
         Dimension d = Toolkit.getDefaultToolkit().getScreenSize();\r
         this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2);\r
     }\r
@@ -309,7 +310,7 @@ public class InstallStepOne extends IDialog implements MouseListener {
             fc.addChoosableFileFilter(new IFileFilter(DataType.FAR_SURFACE_AREA_EXT));\r
             fc.setCurrentDirectory(new File(Workspace.getCurrentWorkspace()));\r
 \r
-            int result = fc.showSaveDialog(new JPanel());\r
+            int result = fc.showOpenDialog(new JPanel());\r
             if (result == JFileChooser.APPROVE_OPTION) {\r
                 jLabelWarning.setVisible(false);\r
                 jTable.setVisible(false);\r