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%2FModuleVariables.java;h=29eb4ff8528facdb1c1771401ca02565ebb0590e;hp=7038ee9612829d10397bf5c1e511ea138de71f79;hb=ff7bc6c4254598cc28e8ad1a9443377d3b6ef832;hpb=a9e882c96dd107020c423a0788778d1cf8bef933 diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleVariables.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleVariables.java index 7038ee9612..29eb4ff852 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleVariables.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleVariables.java @@ -187,7 +187,7 @@ public class ModuleVariables extends IInternalFrame { model.addColumn("Guid C_Name"); model.addColumn("Usage"); - jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); + jTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); jTable.getSelectionModel().addListSelectionListener(this); jTable.getModel().addTableModelListener(this); jTable.addMouseListener(this); @@ -356,9 +356,14 @@ public class ModuleVariables extends IInternalFrame { if (jTable.isEditing()) { jTable.getCellEditor().stopCellEditing(); } - if (selectedRow > -1) { - this.model.removeRow(selectedRow); - this.vid.removeVariables(selectedRow); + + int selectedRows[] = this.jTable.getSelectedRows(); + + if (selectedRows != null) { + for (int index = selectedRows.length - 1; index > -1; index--) { + this.model.removeRow(selectedRows[index]); + this.vid.removeVariables(selectedRows[index]); + } selectedRow = -1; this.save(); }