X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FJava%2FSource%2FFrameworkWizard%2Fsrc%2Forg%2Ftianocore%2Fframeworkwizard%2Fmodule%2Fui%2FModuleSourceFiles.java;h=770a0a0f3f93d7b2ace37fa0f794c5dbe63dc201;hp=5a0747d9e624684ae61c7398511cb5160385d23d;hb=a9e882c96dd107020c423a0788778d1cf8bef933;hpb=5d074084333fc0c16198dcbcb59ef582e820ea12 diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleSourceFiles.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleSourceFiles.java index 5a0747d9e6..770a0a0f3f 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleSourceFiles.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleSourceFiles.java @@ -88,6 +88,8 @@ public class ModuleSourceFiles extends IInternalFrame { private IDefaultTableModel model = null; private int selectedRow = -1; + + private IFrame parentFrame = null; /** This method initializes jButtonAdd @@ -213,10 +215,11 @@ public class ModuleSourceFiles extends IInternalFrame { @param **/ - public ModuleSourceFiles(OpeningModuleType inOmt) { + public ModuleSourceFiles(OpeningModuleType inOmt, IFrame iFrame) { super(); this.omt = inOmt; this.msa = omt.getXmlMsa(); + this.parentFrame = iFrame; init(msa.getSourceFiles()); this.setVisible(true); } @@ -348,7 +351,7 @@ public class ModuleSourceFiles extends IInternalFrame { } private void showEdit(int index) { - SourceFilesDlg sfd = new SourceFilesDlg(this.vSourceFiles.getSourceFiles(index), new IFrame(), omt.getId()); + SourceFilesDlg sfd = new SourceFilesDlg(this.vSourceFiles.getSourceFiles(index), this.parentFrame, omt.getId()); int result = sfd.showDialog(); if (result == DataType.RETURN_TYPE_OK) { if (index == -1) {