This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
<apidef name="refactoring">Refactoring API</apidef>
</apidefs>
<changes>
<change id="FilterSetSelected">
<api name="refactoring"/>
<summary>Introduce a way to update a filter's selected state after creation.</summary>
<version major="1" minor="36"/>
<date day="10" month="06" year="2013"/>
<author login="ralphbenjamin"/>
<compatibility addition="yes"/>
<description>
<p>
Added the method setSelected, to introduce a way to update a filter's selected state after creation.
</p>
</description>
<class package="org.netbeans.modules.refactoring.spi.ui" name="FiltersDescription"/>
<issue number="230538"/>
</change>
<change id="TransactionProgress">
<summary>RefactoringCommit implements the interface ProgressProvider.</summary>
javadoc.apichanges=${basedir}/apichanges.xml
javadoc.title=Refactoring API
spec.version.base=1.35.0
spec.version.base=1.36.0
test.config.stableBTD.includes=**/*Test.class
public boolean isSelected(int index) {
return filters.get(index).selected;
}
/**
* Change the selected value of the filter at the supplied index.
*
* @param index the index of the filter
* @param selected true if the filter should be selected
* @throws IndexOutOfBoundsException if the index is out of range
* ({@code index < 0 || index >= size()})
* @since 1.36
*/
public void setSelected(int index, boolean selected) {
filters.get(index).selected = selected;
* Enable the filter at the supplied index.