**/\r
package org.tianocore.frameworkwizard.packaging.ui;\r
\r
+import javax.swing.JFrame;\r
import javax.swing.JOptionPane;\r
import javax.swing.table.DefaultTableModel;\r
import javax.swing.table.TableModel;\r
private SpdFileContents sfc = null;\r
private OpeningPackageType docConsole = null;\r
\r
- public SpdProtocolDecls() {\r
- super();\r
+ public SpdProtocolDecls(JFrame frame) {\r
+ super(frame);\r
// TODO Auto-generated constructor stub\r
}\r
\r
- public SpdProtocolDecls(PackageSurfaceAreaDocument.PackageSurfaceArea inPsa) {\r
- this();\r
+ public SpdProtocolDecls(PackageSurfaceAreaDocument.PackageSurfaceArea inPsa, JFrame frame) {\r
+ this(frame);\r
sfc = new SpdFileContents(inPsa);\r
init(sfc);\r
}\r
\r
- public SpdProtocolDecls(OpeningPackageType opt) {\r
- this(opt.getXmlSpd());\r
+ public SpdProtocolDecls(OpeningPackageType opt, JFrame frame) {\r
+ this(opt.getXmlSpd(), frame);\r
docConsole = opt;\r
if (sfc.getSpdPkgDefsRdOnly().equals("true")) {\r
- JOptionPane.showMessageDialog(frame, "This is a read-only package. You will not be able to edit contents in table.");\r
+ JOptionPane.showMessageDialog(this, "This is a read-only package. You will not be able to edit contents in table.");\r
}\r
initFrame();\r
}\r