]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/MigrationTools/org/tianocore/migration/FirstPanel.java
add MigrationTool
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / FirstPanel.java
index c35077f0c468c4baabcb7f22835a87bce1fb4df7..d0f9151ed7fe613b7ef2f1c134559d610884aa27 100644 (file)
@@ -65,15 +65,15 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList
                \r
                mibox = new JCheckBox("Print ModuleInfo", false);\r
                mibox.addItemListener(this);\r
-               ModuleInfo.printModuleInfo = false;\r
+               MigrationTool.printModuleInfo = false;\r
                \r
                criticbox = new JCheckBox("Run Critic", true);\r
                criticbox.addItemListener(this);\r
-               ModuleInfo.doCritic = true;\r
+               MigrationTool.doCritic = true;\r
                \r
                defaultpathbox = new JCheckBox("Use Default Output Path", true);\r
                defaultpathbox.addItemListener(this);\r
-               ModuleInfo.defaultoutput = true;\r
+               MigrationTool.defaultoutput = true;\r
                \r
         JPanel modulePanel = new JPanel();\r
         modulePanel.add(moduleButton);\r
@@ -177,7 +177,7 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList
         if ( e.getSource() == goButton ) {\r
                try {\r
                        logfile = new PrintWriter(new BufferedWriter(new FileWriter(startpath.replaceAll(Common.strseparate, "$1") + File.separator + "migration.log")));\r
-                       ModuleInfo.triger(startpath);\r
+                       MigrationTool.triger(startpath);\r
                        logfile.flush();\r
                } catch (Exception en) {\r
                        println(en.getMessage());\r
@@ -214,21 +214,21 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList
                }\r
        } else if (e.getSource() == mibox) {\r
                if (e.getStateChange() == ItemEvent.DESELECTED) {\r
-                       ModuleInfo.printModuleInfo = false;\r
+                       MigrationTool.printModuleInfo = false;\r
                } else if (e.getStateChange() == ItemEvent.SELECTED) {\r
-                       ModuleInfo.printModuleInfo = true;\r
+                       MigrationTool.printModuleInfo = true;\r
                }\r
        } else if (e.getSource() == criticbox) {\r
                if (e.getStateChange() == ItemEvent.DESELECTED) {\r
-                       ModuleInfo.doCritic = false;\r
+                       MigrationTool.doCritic = false;\r
                } else if (e.getStateChange() == ItemEvent.SELECTED) {\r
-                       ModuleInfo.doCritic = true;\r
+                       MigrationTool.doCritic = true;\r
                }\r
        } else if (e.getSource() == defaultpathbox) {\r
                if (e.getStateChange() == ItemEvent.DESELECTED) {\r
-                       ModuleInfo.defaultoutput = false;\r
+                       MigrationTool.defaultoutput = false;\r
                } else if (e.getStateChange() == ItemEvent.SELECTED) {\r
-                       ModuleInfo.defaultoutput = true;\r
+                       MigrationTool.defaultoutput = true;\r
                }\r
        }\r
     }\r