diff --git a/refactoring.api/src/org/netbeans/modules/refactoring/spi/ui/FiltersDescription.java b/refactoring.api/src/org/netbeans/modules/refactoring/spi/ui/FiltersDescription.java --- a/refactoring.api/src/org/netbeans/modules/refactoring/spi/ui/FiltersDescription.java +++ b/refactoring.api/src/org/netbeans/modules/refactoring/spi/ui/FiltersDescription.java @@ -141,6 +141,18 @@ public boolean isSelected(int index) { return filters.get(index).selected; } + + /** + * Set selected flag + * + * @param index the index of the filter + * @param select new state of the flag + * @throws IndexOutOfBoundsException if the index is out of range + * ({@code index < 0 || index >= size()}) + */ + public void select(int index, boolean select) { + filters.get(index).selected = select; + } /** * Enable the filter at the supplied index.