]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/updateui/UpdateStepOne.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 / updateui / UpdateStepOne.java
index 47d3db52e49425ed4ee03b55a1660969f203c934..bea6f7c7a00b6d30f8c99dc3e610ef0b973517e8 100644 (file)
@@ -36,6 +36,7 @@ import org.tianocore.frameworkwizard.common.ui.IDialog;
 import org.tianocore.frameworkwizard.common.ui.IFrame;\r
 import org.tianocore.frameworkwizard.far.Far;\r
 import org.tianocore.frameworkwizard.far.FarIdentification;\r
+import org.tianocore.frameworkwizard.far.FarStringDefinition;\r
 import org.tianocore.frameworkwizard.workspace.Workspace;\r
 import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
@@ -200,7 +201,7 @@ public class UpdateStepOne extends IDialog implements MouseListener {
     private void initialize() {\r
         this.setSize(700, 400);\r
         this.setContentPane(getJContentPane());\r
-        this.setTitle("Update Framework Archive(FAR) - Step 1: Choose FAR File");\r
+        this.setTitle(FarStringDefinition.UPDATE_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
@@ -276,7 +277,7 @@ public class UpdateStepOne 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
                 this.jTextFieldFarFile.setText(Tools.addPathExt(fc.getSelectedFile().getPath(),\r
                                                                 DataType.RETURN_TYPE_FAR_SURFACE_AREA));\r