]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/MigrationTools/org/tianocore/migration/FirstPanel.java
enhance ModuleReader
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / FirstPanel.java
index 8c428087d669283ac0aa5870697c62ede84ef008..de8e75f14290d504f99118e24f904fda4fa9938f 100644 (file)
@@ -59,12 +59,18 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList
                \r
                filebox = new JCheckBox("Output to logfile", true);\r
                filebox.addItemListener(this);\r
+               \r
                screenbox = new JCheckBox("Specify logfile", false);\r
                screenbox.addItemListener(this);\r
-               mibox = new JCheckBox("Show ModuleInfo", false);\r
+               \r
+               mibox = new JCheckBox("Print ModuleInfo", false);\r
                mibox.addItemListener(this);\r
+               MigrationTool.printModuleInfo = false;\r
+               \r
                criticbox = new JCheckBox("Run Critic", true);\r
                criticbox.addItemListener(this);\r
+               MigrationTool.doCritic = true;\r
+               \r
                defaultpathbox = new JCheckBox("Use Default Output Path", true);\r
                defaultpathbox.addItemListener(this);\r
                \r
@@ -205,14 +211,16 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList
                }\r
        } else if (e.getSource() == mibox) {\r
                if (e.getStateChange() == ItemEvent.DESELECTED) {\r
-                       System.out.println("mibox DESELECTED");\r
+                       MigrationTool.printModuleInfo = false;\r
                } else if (e.getStateChange() == ItemEvent.SELECTED) {\r
-                       System.out.println("mibox SELECTED");\r
+                       MigrationTool.printModuleInfo = true;\r
                }\r
        } else if (e.getSource() == criticbox) {\r
                if (e.getStateChange() == ItemEvent.DESELECTED) {\r
+                       MigrationTool.doCritic = false;\r
                        System.out.println("criticbox DESELECTED");\r
                } else if (e.getStateChange() == ItemEvent.SELECTED) {\r
+                       MigrationTool.doCritic = true;\r
                        System.out.println("criticbox SELECTED");\r
                }\r
        } else if (e.getSource() == defaultpathbox) {\r