]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdDynamicPcdBuildDefinitions.java
Adapt to new Main UI interface.
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdDynamicPcdBuildDefinitions.java
index 58bdeb606d5871c226a71b247a2b4f1d96929a95..0a96224da3fcaaa1811e2486517389f593ecdf61 100644 (file)
@@ -12,6 +12,7 @@ import javax.swing.event.ListSelectionListener;
 import javax.swing.table.DefaultTableModel;\r
 \r
 import org.tianocore.PlatformSurfaceAreaDocument;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import javax.swing.JCheckBox;\r
 import java.awt.FlowLayout;\r
@@ -35,6 +36,7 @@ public class FpdDynamicPcdBuildDefinitions extends IInternalFrame {
     private DynPcdTableModel model = null; \r
     private DynPcdTableModel model1 = null;\r
     private FpdFileContents ffc = null;\r
+    private OpeningPlatformType docConsole = null;\r
     private JPanel jPanel3 = null;\r
     private JCheckBox jCheckBox = null;\r
     private JPanel jPanel4 = null;\r
@@ -71,6 +73,11 @@ public class FpdDynamicPcdBuildDefinitions extends IInternalFrame {
         init(fpd);\r
     }\r
     \r
+    public FpdDynamicPcdBuildDefinitions(OpeningPlatformType opt) {\r
+        this(opt.getXmlFpd());\r
+        docConsole = opt;\r
+    }\r
+    \r
     public void init(PlatformSurfaceAreaDocument.PlatformSurfaceArea fpd) {\r
         if (ffc == null) {\r
             ffc = new FpdFileContents(fpd);\r
@@ -492,7 +499,7 @@ public class FpdDynamicPcdBuildDefinitions extends IInternalFrame {
                     if (pcdSelected < 0) {\r
                         return;\r
                     }\r
-                    \r
+                    docConsole.setSaved(false);\r
                     updateSkuInfo(pcdSelected);\r
                     \r
                 }\r