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
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
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