]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdBuildOptions.java
Fix EDKT337,Double click on modules in "Framework Modules" of Platforms should be...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdBuildOptions.java
index ada2a82a11fb9118b3b2c65f1ce5e1364ca9e66a..7f06730fe40939ddd5e8e5867927574a52b98e6f 100644 (file)
@@ -15,7 +15,6 @@
 package org.tianocore.frameworkwizard.platform.ui;\r
 \r
 import java.awt.BorderLayout;\r
-import javax.swing.BoxLayout;\r
 \r
 import javax.swing.JPanel;\r
 import javax.swing.JTabbedPane;\r
@@ -49,7 +48,6 @@ import org.tianocore.PlatformSurfaceAreaDocument;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
-import org.tianocore.frameworkwizard.common.ui.ArchCheckBox;\r
 \r
 import java.io.File;\r
 import java.util.ArrayList;\r
@@ -66,8 +64,6 @@ public class FpdBuildOptions extends IInternalFrame {
 \r
     private final int twoRowHeight = 40;\r
 \r
-    private final int threeRowHeight = 60;\r
-\r
     private final int sepHeight = 6;\r
 \r
     private final int sepWidth = 10;\r
@@ -100,8 +96,6 @@ public class FpdBuildOptions extends IInternalFrame {
 \r
     private final int firstButtonLoc = next2LastButtonLoc - buttonWidth - sepWidth;\r
 \r
-    private final int starColumn = 2;\r
-\r
     private final int labelColumn = 12;\r
 \r
     private final int fieldColumn = 168;\r
@@ -300,22 +294,14 @@ public class FpdBuildOptions extends IInternalFrame {
 \r
     private JPanel jPanelSectionN = null;\r
 \r
-    private JPanel jPanelSectionC = null;\r
-\r
     private JPanel jPanelSectionsN = null;\r
 \r
-    private JPanel jPanelSectionsC = null;\r
-\r
     private JPanel jPanelSubSectionN = null;\r
 \r
-    private JPanel jPanelSubSectionC = null;\r
-\r
     private JPanel jPanelOptionsContainer = null;\r
 \r
     private JPanel jPanelUserDefCenterN = null;\r
 \r
-    private JPanel jPanelUserDefCenterC = null;\r
-\r
     /**\r
      * This method initializes jPanel  \r
      *         \r
@@ -1251,7 +1237,7 @@ public class FpdBuildOptions extends IInternalFrame {
             jPanelFfsCTop = new JPanel();\r
             jPanelFfsCTop.setLayout(new BorderLayout());\r
             jPanelFfsCTop.add(getJPanelSectionN(), java.awt.BorderLayout.NORTH);\r
-            jPanelFfsCTop.add(getJPanelSectionC(), java.awt.BorderLayout.CENTER);\r
+            jPanelFfsCTop.add(getJScrollPaneFfsSection(), java.awt.BorderLayout.CENTER);\r
         }\r
         return jPanelFfsCTop;\r
     }\r
@@ -1283,7 +1269,7 @@ public class FpdBuildOptions extends IInternalFrame {
             jPanelFfsCBottomTop = new JPanel();\r
             jPanelFfsCBottomTop.setLayout(new BorderLayout());\r
             jPanelFfsCBottomTop.add(getJPanelSectionsN(), java.awt.BorderLayout.NORTH);\r
-            jPanelFfsCBottomTop.add(getJPanelSectionsC(), java.awt.BorderLayout.CENTER);\r
+            jPanelFfsCBottomTop.add(getJScrollPaneFfsSections(), java.awt.BorderLayout.CENTER);\r
         }\r
         return jPanelFfsCBottomTop;\r
     }\r
@@ -1298,7 +1284,7 @@ public class FpdBuildOptions extends IInternalFrame {
             jPanelFfsCBottomBottom = new JPanel();\r
             jPanelFfsCBottomBottom.setLayout(new BorderLayout());\r
             jPanelFfsCBottomBottom.add(getJPanelSubSectionN(), java.awt.BorderLayout.NORTH);\r
-            jPanelFfsCBottomBottom.add(getJPanelSubSectionC(), java.awt.BorderLayout.CENTER);\r
+            jPanelFfsCBottomBottom.add(getJScrollPaneFfsSubSection(), java.awt.BorderLayout.CENTER);\r
         }\r
         return jPanelFfsCBottomBottom;\r
     }\r
@@ -1320,19 +1306,6 @@ public class FpdBuildOptions extends IInternalFrame {
         return jPanelSectionN;\r
     }\r
 \r
-    /**\r
-     * This method initializes jPanelSectionC   \r
-     *  \r
-     * @return javax.swing.JPanel   \r
-     */\r
-    private JPanel getJPanelSectionC() {\r
-        if (jPanelSectionC == null) {\r
-            jPanelSectionC = new JPanel();\r
-            jPanelSectionC.add(getJScrollPaneFfsSection(), null);\r
-        }\r
-        return jPanelSectionC;\r
-    }\r
-\r
     /**\r
      * This method initializes jPanelSectionsN  \r
      *  \r
@@ -1350,19 +1323,6 @@ public class FpdBuildOptions extends IInternalFrame {
         return jPanelSectionsN;\r
     }\r
 \r
-    /**\r
-     * This method initializes jPanelSectionsC  \r
-     *  \r
-     * @return javax.swing.JPanel   \r
-     */\r
-    private JPanel getJPanelSectionsC() {\r
-        if (jPanelSectionsC == null) {\r
-            jPanelSectionsC = new JPanel();\r
-            jPanelSectionsC.add(getJScrollPaneFfsSections(), null);\r
-        }\r
-        return jPanelSectionsC;\r
-    }\r
-\r
     /**\r
      * This method initializes jPanelSubSectionN    \r
      *  \r
@@ -1380,19 +1340,6 @@ public class FpdBuildOptions extends IInternalFrame {
         return jPanelSubSectionN;\r
     }\r
 \r
-    /**\r
-     * This method initializes jPanelSubSectionC    \r
-     *  \r
-     * @return javax.swing.JPanel   \r
-     */\r
-    private JPanel getJPanelSubSectionC() {\r
-        if (jPanelSubSectionC == null) {\r
-            jPanelSubSectionC = new JPanel();\r
-            jPanelSubSectionC.add(getJScrollPaneFfsSubSection(), null);\r
-        }\r
-        return jPanelSubSectionC;\r
-    }\r
-\r
     /**\r
      * The following section contains all Build Options content\r
      */\r
@@ -1808,7 +1755,11 @@ public class FpdBuildOptions extends IInternalFrame {
             vArch.add("ARM");\r
             vArch.add("PPC");\r
             jTableOptions.getColumnModel().getColumn(2).setCellEditor(new ListEditor(vArch));\r
+            \r
+            jTableOptions.getColumnModel().getColumn(5).setCellEditor(new LongTextEditor());\r
+            \r
             jTableOptions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
+           jTableOptions.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\r
             jTableOptions.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\r
                 public void valueChanged(ListSelectionEvent e) {\r
                     selectedRow = -1;\r
@@ -1978,19 +1929,6 @@ public class FpdBuildOptions extends IInternalFrame {
         return jPanelUserDefCenterN;\r
     }\r
 \r
-    /**\r
-     * This method initializes jPanelUserDefCenterC    \r
-     *         \r
-     * @return javax.swing.JPanel      \r
-     */\r
-    private JPanel getJPanelUserDefCenterC() {\r
-        if (jPanelUserDefCenterC == null) {\r
-            jPanelUserDefCenterC = new JPanel();\r
-            jPanelUserDefCenterC.add(getJScrollPaneAntTasks(), null);\r
-        }\r
-        return jPanelUserDefCenterC;\r
-    }\r
-\r
     /**\r
      * This method initializes jPanel8  \r
      *  \r
@@ -2046,7 +1984,7 @@ public class FpdBuildOptions extends IInternalFrame {
             jPanelUserDefCenter.setLayout(new BorderLayout());\r
 \r
             jPanelUserDefCenter.add(getJPanelUserDefCenterN(), java.awt.BorderLayout.NORTH);\r
-            jPanelUserDefCenter.add(getJPanelUserDefCenterC(), java.awt.BorderLayout.CENTER);\r
+            jPanelUserDefCenter.add(getJScrollPaneAntTasks(), java.awt.BorderLayout.CENTER);\r
         }\r
         return jPanelUserDefCenter;\r
     }\r