comment out item type checking temporarily when adding module to fpd file.
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdHeader.java
index 4ca854c..ea6171f 100644 (file)
@@ -20,6 +20,7 @@ import java.awt.event.ActionEvent;
 import java.awt.event.ComponentEvent;\r
 import java.awt.event.FocusAdapter;\r
 import java.awt.event.FocusEvent;\r
+import java.util.Vector;\r
 \r
 import javax.swing.JButton;\r
 import javax.swing.JFrame;\r
@@ -534,7 +535,24 @@ public class FpdHeader extends IInternalFrame {
         if (ffc.getFpdHdrSpec() != null) {\r
             jTextFieldSpecification.setText(ffc.getFpdHdrSpec());\r
         }\r
-        ffc.setFpdHdrSpec(jTextFieldSpecification.getText());    \r
+        ffc.setFpdHdrSpec(jTextFieldSpecification.getText());\r
+        \r
+        ffc.genPlatformDefsSkuInfo("0", "DEFAULT");\r
+        Vector<Object> v = new Vector<Object>();\r
+        ffc.getPlatformDefsSupportedArchs(v);\r
+        if (v.size() == 0) {\r
+            v.add("IA32");\r
+            ffc.setPlatformDefsSupportedArchs(v);\r
+        }\r
+        v.removeAllElements();\r
+        ffc.getPlatformDefsBuildTargets(v);\r
+        if (v.size() == 0) {\r
+            v.add("DEBUG");\r
+            ffc.setPlatformDefsBuildTargets(v);\r
+        }\r
+        if (ffc.getPlatformDefsInterDir() == null) {\r
+            ffc.setPlatformDefsInterDir("UNIFIED");\r
+        }\r
     }\r
 \r
     /**\r