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.

View | Details | Raw Unified | Return to bug 230538
Collapse All | Expand All

(-)a/refactoring.api/apichanges.xml (+15 lines)
Lines 49-54 Link Here
49
    <apidef name="refactoring">Refactoring API</apidef>
49
    <apidef name="refactoring">Refactoring API</apidef>
50
</apidefs>
50
</apidefs>
51
<changes>
51
<changes>
52
    <change id="FilterSetSelected">
53
        <api name="refactoring"/>
54
        <summary>Introduce a way to update a filter's selected state after creation.</summary>
55
        <version major="1" minor="36"/>
56
        <date day="10" month="06" year="2013"/>
57
        <author login="ralphbenjamin"/>
58
        <compatibility addition="yes"/>
59
        <description>
60
            <p>
61
                Added the method setSelected, to introduce a way to update a filter's selected state after creation.
62
            </p>
63
        </description>
64
        <class package="org.netbeans.modules.refactoring.spi.ui" name="FiltersDescription"/>
65
        <issue number="230538"/>
66
    </change>
52
    <change id="TransactionProgress">
67
    <change id="TransactionProgress">
53
        <api name="refactoring"/>
68
        <api name="refactoring"/>
54
        <summary>RefactoringCommit implements the interface ProgressProvider.</summary>
69
        <summary>RefactoringCommit implements the interface ProgressProvider.</summary>
(-)a/refactoring.api/nbproject/project.properties (-1 / +1 lines)
Lines 4-8 Link Here
4
javadoc.apichanges=${basedir}/apichanges.xml
4
javadoc.apichanges=${basedir}/apichanges.xml
5
javadoc.title=Refactoring API
5
javadoc.title=Refactoring API
6
6
7
spec.version.base=1.35.0
7
spec.version.base=1.36.0
8
test.config.stableBTD.includes=**/*Test.class
8
test.config.stableBTD.includes=**/*Test.class
(-)a/refactoring.api/src/org/netbeans/modules/refactoring/spi/ui/FiltersDescription.java (+13 lines)
Lines 141-146 Link Here
141
    public boolean isSelected(int index) {
141
    public boolean isSelected(int index) {
142
        return filters.get(index).selected;
142
        return filters.get(index).selected;
143
    }
143
    }
144
    
145
    /**
146
     * Change the selected value of the filter at the supplied index.
147
     *
148
     * @param index the index of the filter
149
     * @param selected true if the filter should be selected
150
     * @throws IndexOutOfBoundsException if the index is out of range
151
     * ({@code index < 0 || index >= size()})
152
     * @since 1.36
153
     */
154
    public void setSelected(int index, boolean selected) {
155
        filters.get(index).selected = selected;
156
    }
144
157
145
    /**
158
    /**
146
     * Enable the filter at the supplied index.
159
     * Enable the filter at the supplied index.

Return to bug 230538