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%2FModuleBuildOptions.java;h=993d1b9dcbc3786c994bb83ec82772f23a05f8d8;hp=178ae39981e035ef1710cd6b7b70da851eae26f0;hb=ff7bc6c4254598cc28e8ad1a9443377d3b6ef832;hpb=4cb9d58c9b132edd6e6a48598b856e3129b56931 diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleBuildOptions.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleBuildOptions.java index 178ae39981..993d1b9dcb 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleBuildOptions.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleBuildOptions.java @@ -189,7 +189,7 @@ public class ModuleBuildOptions extends IInternalFrame { model.addColumn("Option String Value"); - jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); + jTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); jTable.getSelectionModel().addListSelectionListener(this); jTable.getModel().addTableModelListener(this); jTable.addMouseListener(this); @@ -364,9 +364,14 @@ public class ModuleBuildOptions extends IInternalFrame { if (jTable.isEditing()) { jTable.getCellEditor().stopCellEditing(); } - if (selectedRow > -1) { - this.model.removeRow(selectedRow); - this.vid.removeBuildOptions(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.removeBuildOptions(selectedRows[index]); + } selectedRow = -1; this.save(); }