]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleEvents.java
1. Fix the bug missing TokenSpaceGuidCName when editing a pcd entry in Msa
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / ui / ModuleEvents.java
index 676b7acc4eb71cd611d1bb0b30a1a4f706f38e18..52d4ff99533838e23015b973490dac698a3ed8cc 100644 (file)
@@ -27,6 +27,7 @@ import javax.swing.JTable;
 import javax.swing.ListSelectionModel;\r
 import javax.swing.event.ListSelectionEvent;\r
 \r
+import org.tianocore.EventTypes;\r
 import org.tianocore.EventsDocument;\r
 import org.tianocore.ProtocolNotifyUsage;\r
 import org.tianocore.ProtocolUsage;\r
@@ -239,7 +240,8 @@ public class ModuleEvents extends IInternalFrame {
                         Vector<String> arg4 = Tools.convertListToVector(events.getCreateEvents().getEventTypesList()\r
                                                                               .get(index).getSupArchList());\r
                         String arg5 = events.getCreateEvents().getEventTypesList().get(index).getHelpText();\r
-                        id = new EventsIdentification(arg0, arg1, arg2, arg3, arg4, arg5);\r
+                        String arg6 = events.getCreateEvents().getEventTypesList().get(index).getEventType().toString();\r
+                        id = new EventsIdentification(arg0, arg1, arg2, arg3, arg4, arg5, arg6);\r
                         vid.addEvents(id);\r
                     }\r
                 }\r
@@ -258,7 +260,8 @@ public class ModuleEvents extends IInternalFrame {
                         Vector<String> arg4 = Tools.convertListToVector(events.getSignalEvents().getEventTypesList()\r
                                                                               .get(index).getSupArchList());\r
                         String arg5 = events.getSignalEvents().getEventTypesList().get(index).getHelpText();\r
-                        id = new EventsIdentification(arg0, arg1, arg2, arg3, arg4, arg5);\r
+                        String arg6 = events.getSignalEvents().getEventTypesList().get(index).getEventType().toString();\r
+                        id = new EventsIdentification(arg0, arg1, arg2, arg3, arg4, arg5, arg6);\r
                         vid.addEvents(id);\r
                     }\r
                 }\r
@@ -422,6 +425,9 @@ public class ModuleEvents extends IInternalFrame {
                         if (!isEmpty(vid.getEvents(index).getHelp())) {\r
                             e.setHelpText(vid.getEvents(index).getHelp());\r
                         }\r
+                        if (!isEmpty(vid.getEvents(index).getGroup())) {\r
+                            e.setEventType(EventTypes.Enum.forString(vid.getEvents(index).getGroup()));\r
+                        }\r
                         ce.addNewEventTypes();\r
                         ce.setEventTypesArray(ce.getEventTypesList().size() - 1, e);\r
                     }\r
@@ -443,6 +449,9 @@ public class ModuleEvents extends IInternalFrame {
                         if (!isEmpty(vid.getEvents(index).getHelp())) {\r
                             e.setHelpText(vid.getEvents(index).getHelp());\r
                         }\r
+                        if (!isEmpty(vid.getEvents(index).getGroup())) {\r
+                            e.setEventType(EventTypes.Enum.forString(vid.getEvents(index).getGroup()));\r
+                        }\r
                         se.addNewEventTypes();\r
                         se.setEventTypesArray(ce.getEventTypesList().size() - 1, e);\r
                     }\r