]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java
Fix Sku Info update UI refresh to update the dynamic pcd value for selected sku id.
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdFlash.java
index 5717b3b781b89270fc2ce0c4c1219dd0201ec183..af164d7032ed9f4506a53205a5033610c4e0f4c9 100644 (file)
@@ -31,6 +31,7 @@ import org.tianocore.frameworkwizard.common.ui.IInternalFrame;
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
 import org.tianocore.frameworkwizard.platform.ui.global.WorkspaceProfile;\r
+import org.tianocore.frameworkwizard.workspace.Workspace;\r
 \r
 import java.awt.FlowLayout;\r
 import java.awt.event.ActionEvent;\r
@@ -1024,7 +1025,7 @@ public class FpdFlash extends IInternalFrame {
                 public void componentShown(ComponentEvent e) {\r
 //                    if (ffc.getFlashDefinitionFile() != null) {\r
 //                        jTextFieldFdf.setText(ffc.getFlashDefinitionFile());\r
-//                        initFvInFdfTable(System.getenv("WORKSPACE") + File.separator + jTextFieldFdf.getText());\r
+//                        initFvInFdfTable(Workspace.getCurrenetWorkspace() + File.separator + jTextFieldFdf.getText());\r
 //    \r
 //                    }\r
                 }\r
@@ -1112,7 +1113,7 @@ public class FpdFlash extends IInternalFrame {
 \r
                 public void actionPerformed(ActionEvent e) {\r
                     // TODO Auto-generated method stub\r
-                    String wsDir = System.getenv("WORKSPACE");\r
+                    String wsDir = Workspace.getCurrentWorkspace();\r
                     JFileChooser chooser = new JFileChooser(wsDir);\r
                     chooser.setMultiSelectionEnabled(false);\r
                     chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\r
@@ -2292,7 +2293,7 @@ public class FpdFlash extends IInternalFrame {
         if (fdfFile != null && fdfFile.length() > 0) {\r
             jCheckBoxFdf.setSelected(true);\r
             jTextFieldFdf.setText(fdfFile);\r
-            String fdfPath = System.getenv("WORKSPACE") + File.separator + fdfFile;\r
+            String fdfPath = Workspace.getCurrentWorkspace() + File.separator + fdfFile;\r
             initFvInFdfTable(fdfPath);\r
         }\r
         \r