Made the Specification look like a comment at the bottom of the page, since it cannot...
authorlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 25 Aug 2006 17:18:54 +0000 (17:18 +0000)
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 25 Aug 2006 17:18:54 +0000 (17:18 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1386 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/MsaHeader.java

index faa8b9988e4fc223b9b0ab18e312aa8c46c12bd3..a180910a9f02ac8b88f9c1330bbc0c477ad0194a 100644 (file)
@@ -57,6 +57,10 @@ public class MsaHeader extends IInternalFrame {
     ///\r
     private static final long serialVersionUID = -8152099582923006900L;\r
 \r
+    private int dialogWidth = 500;\r
+    \r
+    private int dialogHeight = 630;\r
+    \r
     //\r
     //Define class members\r
     //\r
@@ -148,7 +152,7 @@ public class MsaHeader extends IInternalFrame {
 \r
     private StarLabel jStarLabel14 = null;\r
 \r
-    private StarLabel jStarLabel15 = null;\r
+//    private StarLabel jStarLabel15 = null;\r
 \r
     private JCheckBox jCheckBoxIa32 = null;\r
 \r
@@ -161,7 +165,7 @@ public class MsaHeader extends IInternalFrame {
     private JCheckBox jCheckBoxArm = null;\r
 \r
     private JCheckBox jCheckBoxPpc = null;\r
-\r
+    \r
     //\r
     // Not used for UI\r
     //\r
@@ -390,10 +394,14 @@ public class MsaHeader extends IInternalFrame {
     private JTextField getJTextFieldSpecification() {\r
         if (jTextFieldSpecification == null) {\r
             jTextFieldSpecification = new JTextField();\r
+            \r
             jTextFieldSpecification.setPreferredSize(new java.awt.Dimension(320, 20));\r
             jTextFieldSpecification.setText("FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00000052");\r
+            jTextFieldSpecification.setBorder(null);\r
+            \r
+            \r
             jTextFieldSpecification.setSize(new java.awt.Dimension(320, 20));\r
-            jTextFieldSpecification.setLocation(new java.awt.Point(160, 530));\r
+            jTextFieldSpecification.setLocation(new java.awt.Point(2, dialogHeight - 30));\r
             jTextFieldSpecification.setEditable(false);\r
             jTextFieldSpecification.addFocusListener(this);\r
         }\r
@@ -680,8 +688,8 @@ public class MsaHeader extends IInternalFrame {
      \r
      **/\r
     private void init() {\r
-        this.setSize(500, 515);\r
-        this.setPreferredSize(new java.awt.Dimension(490, 615));\r
+        this.setSize(dialogWidth, dialogHeight);\r
+        this.setPreferredSize(new java.awt.Dimension(dialogWidth, dialogHeight));\r
         this.setContentPane(getJScrollPane());\r
         this.setTitle("Module Surface Area Header");\r
         initFrame();\r
@@ -818,7 +826,8 @@ public class MsaHeader extends IInternalFrame {
 \r
             jContentPane = new JPanel();\r
             jContentPane.setLayout(null);\r
-            jContentPane.setPreferredSize(new java.awt.Dimension(490, 565));\r
+            jContentPane.setPreferredSize(new java.awt.Dimension(dialogWidth - 10, dialogHeight - 10));\r
+            \r
             jContentPane.addFocusListener(this);\r
 \r
             jContentPane.add(jLabelBaseName, null);\r
@@ -831,7 +840,7 @@ public class MsaHeader extends IInternalFrame {
             jContentPane.add(jLabelLicense, null);\r
             jContentPane.add(jLabelCopyright, null);\r
             jContentPane.add(jLabelDescription, null);\r
-            jContentPane.add(jLabelSpecification, null);\r
+//            jContentPane.add(jLabelSpecification, null);\r
             jContentPane.add(getJTextFieldSpecification(), null);\r
             jContentPane.add(getJButtonOk(), null);\r
             jContentPane.add(getJButtonCancel(), null);\r
@@ -871,8 +880,8 @@ public class MsaHeader extends IInternalFrame {
             jStarLabel13.setLocation(new java.awt.Point(0, 480));\r
             jStarLabel14 = new StarLabel();\r
             jStarLabel14.setLocation(new java.awt.Point(0, 505));\r
-            jStarLabel15 = new StarLabel();\r
-            jStarLabel15.setLocation(new java.awt.Point(0, 530));\r
+//            jStarLabel15 = new StarLabel();\r
+//            jStarLabel15.setLocation(new java.awt.Point(0, 530));\r
 \r
             jContentPane.add(jStarLabel1, null);\r
             jContentPane.add(jStarLabel2, null);\r
@@ -885,7 +894,7 @@ public class MsaHeader extends IInternalFrame {
             jContentPane.add(jStarLabel12, null);\r
             jContentPane.add(jStarLabel13, null);\r
             jContentPane.add(jStarLabel14, null);\r
-            jContentPane.add(jStarLabel15, null);\r
+//            jContentPane.add(jStarLabel15, null);\r
             jContentPane.add(getJScrollPaneCopyright(), null);\r
 \r
             jContentPane.add(getJCheckBoxIa32(), null);\r
@@ -1027,6 +1036,9 @@ public class MsaHeader extends IInternalFrame {
             return false;\r
         }\r
         if (!DataValidation.isSpecification(this.jTextFieldSpecification.getText())) {\r
+            // TODO Add code to check the specification number.\r
+            // Future releases of Schema may require that we process these files\r
+            // differently.\r
             Log.wrn("Update Msa Header", "Incorrect data type for Specification");\r
             //this.jTextFieldSpecification.requestFocus();\r
             return false;\r