]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleProtocols.java
1. Fix EDKT336: Back to focused dialog window when shift to wizard
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / ui / ModuleProtocols.java
index a02ce38caa3f47f823ecb221152dca99a8e60b86..1d8c9336686215d8b0e182372ce978ed09f823f4 100644 (file)
@@ -96,6 +96,8 @@ public class ModuleProtocols extends IInternalFrame {
     private IDefaultTableModel model = null;\r
 \r
     private int selectedRow = -1;\r
+    \r
+    private IFrame parentFrame = null;\r
 \r
     /**\r
      This method initializes jButtonAdd \r
@@ -280,10 +282,11 @@ public class ModuleProtocols extends IInternalFrame {
      @param inProtocol The input data of ProtocolsDocument.Protocols\r
      \r
      **/\r
-    public ModuleProtocols(OpeningModuleType inOmt) {\r
+    public ModuleProtocols(OpeningModuleType inOmt, IFrame iFrame) {\r
         super();\r
         this.omt = inOmt;\r
         this.msa = omt.getXmlMsa();\r
+        this.parentFrame = iFrame;\r
         init(msa.getProtocols());\r
         this.setVisible(true);\r
     }\r
@@ -309,7 +312,7 @@ public class ModuleProtocols extends IInternalFrame {
     }\r
 \r
     private void showEdit(int index) {\r
-        ProtocolsDlg dlg = new ProtocolsDlg(vid.getProtocols(index), new IFrame(), omt.getId());\r
+        ProtocolsDlg dlg = new ProtocolsDlg(vid.getProtocols(index), this.parentFrame, omt.getId());\r
         int result = dlg.showDialog();\r
         if (result == DataType.RETURN_TYPE_OK) {\r
             if (index == -1) {\r