X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Tools%2FSource%2FFrameworkWizard%2Fsrc%2Forg%2Ftianocore%2Fframeworkwizard%2Fpackaging%2Fui%2FSpdGuidDecls.java;h=6459c2c56ed432d7c0fe731392779d163b81f9b6;hb=2c85fbc88abf847c8b13f4b55fdad62d3b0697bc;hp=91f4ba64de10d3e4179d4b67a029e7669de685a7;hpb=562d28495df348923812281161e64bc9514e15e6;p=mirror_edk2.git diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java index 91f4ba64de..6459c2c56e 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java @@ -252,9 +252,7 @@ public class SpdGuidDecls extends IInternalFrame implements TableModelListener{ int row = arg0.getFirstRow(); TableModel m = (TableModel)arg0.getSource(); if (arg0.getType() == TableModelEvent.UPDATE){ - if (docConsole != null) { - docConsole.setSaved(false); - } + updateRow(row, m); } } @@ -280,7 +278,9 @@ public class SpdGuidDecls extends IInternalFrame implements TableModelListener{ if (!dataValidation(rowData)){ return; } - + if (docConsole != null) { + docConsole.setSaved(false); + } sfc.updateSpdGuidDecl(row, name, cName, guid, help, archList, modTypeList, guidTypeList); } /** @@ -549,9 +549,7 @@ public class SpdGuidDecls extends IInternalFrame implements TableModelListener{ if (!dataValidation(row)) { return; } - if (docConsole != null) { - docConsole.setSaved(false); - } + model.addRow(row); jTable.changeSelection(model.getRowCount()-1, 0, false, false); addRow(row); @@ -610,17 +608,35 @@ public class SpdGuidDecls extends IInternalFrame implements TableModelListener{ protected void addRow(String[] row) { Vector vArch = iCheckBoxList.getAllCheckedItemsString(); + if (vArch.size() == 0) { + vArch = null; + } Vector vModType = iCheckBoxList2.getAllCheckedItemsString(); + if (vModType.size() == 0) { + vModType = null; + } Vector vguidType = iCheckBoxList1.getAllCheckedItemsString(); + if (vguidType.size() == 0) { + vguidType = null; + } + if (docConsole != null) { + docConsole.setSaved(false); + } sfc.genSpdGuidDeclarations(row[0], row[1], row[2], row[3], vArch, vModType, vguidType); } protected void removeRow(int i){ sfc.removeSpdGuidDeclaration(i); + if (docConsole != null) { + docConsole.setSaved(false); + } } protected void clearAllRow(){ sfc.removeSpdGuidDeclaration(); + if (docConsole != null) { + docConsole.setSaved(false); + } } /**