sort modules by name alphabetically when start; make column width resizable and remov...
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 15 Aug 2006 23:24:24 +0000 (23:24 +0000)
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 15 Aug 2006 23:24:24 +0000 (23:24 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1285 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java

index c8f9afc..d64b003 100644 (file)
@@ -277,7 +277,7 @@ public class FpdFrameworkModules extends IInternalFrame {
             column.setMinWidth(pathMinWidth);\r
 \r
             jTableAllModules.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
-                       // jTableAllModules.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\r
+                       jTableAllModules.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\r
         }\r
         return jTableAllModules;\r
     }\r
@@ -477,7 +477,7 @@ public class FpdFrameworkModules extends IInternalFrame {
             column.setMinWidth(pathMinWidth);\r
 \r
             jTableFpdModules.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
-                       // jTableFpdModules.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\r
+                       jTableFpdModules.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\r
         }\r
         return jTableFpdModules;\r
     }\r
@@ -656,6 +656,8 @@ public class FpdFrameworkModules extends IInternalFrame {
                 al.add(saa[i][ffcModArch]);\r
 \r
             }\r
+            TableSorter sorter = (TableSorter)jTableFpdModules.getModel();\r
+            sorter.setSortingStatus(modNameColForFpdModTable, TableSorter.ASCENDING);\r
         }\r
 \r
         showAllModules();\r
@@ -693,6 +695,9 @@ public class FpdFrameworkModules extends IInternalFrame {
                 miList.add(mi);\r
             }\r
         }\r
+        \r
+        TableSorter sorter = (TableSorter)jTableAllModules.getModel();\r
+        sorter.setSortingStatus(modNameColForAllModTable, TableSorter.ASCENDING);\r
     }\r
 \r
     /**\r
index 5ebcb20..0ab921b 100644 (file)
@@ -259,15 +259,7 @@ public class FpdModuleSA extends JDialog implements ActionListener {
                     this.classProduced.add(classProduced[i]);\r
                 }\r
             }\r
-            //\r
-            // Get classes unresolved\r
-            //\r
-//            Iterator<String> lip = this.classProduced.listIterator();\r
-//            while(lip.hasNext()){\r
-//                String clsProduced = lip.next();\r
-//                this.classConsumed.remove(clsProduced);\r
-//\r
-//            }\r
+            \r
             //\r
             // find potential instances in all dependency pkgs for classes still in classConsumed.\r
             //\r