import org.tianocore.PackageSurfaceAreaDocument;\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
private StarLabel jStarLabel2 = null;\r
\r
private SpdFileContents sfc = null;\r
+ \r
+ private OpeningPackageType docConsole = null;\r
\r
private JLabel jLabel1 = null;\r
\r
if (!dataValidation(rowData)) {\r
return;\r
}\r
+ docConsole.setSaved(false);\r
sfc.updateSpdLibClass(row, lib, hdr, hlp, guid, ver, arch, module);\r
}\r
}\r
sfc = new SpdFileContents(inPsa);\r
init(sfc);\r
}\r
+ \r
+ public SpdLibClassDecls(OpeningPackageType opt) {\r
+ this(opt.getXmlSpd());\r
+ docConsole = opt;\r
+ }\r
/**\r
This method initializes this\r
\r
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\r
*/\r
public void actionPerformed(ActionEvent arg0) {\r
+ \r
+ docConsole.setSaved(false);\r
if (arg0.getSource() == jButtonOk) {\r
this.save();\r
this.dispose();\r
\r
headerDest = theFile.getPath();\r
int fileIndex = headerDest.indexOf(System.getProperty("file.separator"), dirPrefix.length());\r
- \r
jTextField.setText(headerDest.substring(fileIndex + 1).replace('\\', '/'));\r
\r
}\r