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 229553
Collapse All | Expand All

(-)a/api.search/src/org/netbeans/modules/search/Bundle.properties (-1 / +1 lines)
Lines 66-72 Link Here
66
ACS_TEXT_BUTTON_APPLY=N/A
66
ACS_TEXT_BUTTON_APPLY=N/A
67
TEXT_BUTTON_STOP=Stop Search
67
TEXT_BUTTON_STOP=Stop Search
68
ACS_TEXT_BUTTON_STOP=Stops searching and displays files found so far
68
ACS_TEXT_BUTTON_STOP=Stops searching and displays files found so far
69
TEXT_BUTTON_REPLACE= {0,choice,0#No matches selected|1#Replace one match|1<Replace {0} matches}
69
TEXT_BUTTON_REPLACE= {0,choice,0#No matches selected|1#&Replace one match|1<&Replace {0} matches}
70
TEXT_BUTTON_REPLACE_INVALID=Results are outdated
70
TEXT_BUTTON_REPLACE_INVALID=Results are outdated
71
ACS_TEXT_BUTTON_REPLACE=Performs replace of all matches selected with a checked check-box
71
ACS_TEXT_BUTTON_REPLACE=Performs replace of all matches selected with a checked check-box
72
TEXT_INFO_REPLACE_FINISHED={0} {0,choice,0#matches|1#match|1<matches} replaced
72
TEXT_INFO_REPLACE_FINISHED={0} {0,choice,0#matches|1#match|1<matches} replaced
(-)a/api.search/src/org/netbeans/modules/search/ui/BasicReplaceResultsPanel.java (-2 / +10 lines)
Lines 60-65 Link Here
60
import org.netbeans.modules.search.ReplaceTask;
60
import org.netbeans.modules.search.ReplaceTask;
61
import org.netbeans.modules.search.ResultModel;
61
import org.netbeans.modules.search.ResultModel;
62
import org.netbeans.modules.search.ResultView;
62
import org.netbeans.modules.search.ResultView;
63
import org.openide.awt.Mnemonics;
63
import org.openide.nodes.AbstractNode;
64
import org.openide.nodes.AbstractNode;
64
import org.openide.nodes.Children;
65
import org.openide.nodes.Children;
65
import org.openide.nodes.Node;
66
import org.openide.nodes.Node;
Lines 150-155 Link Here
150
        });
151
        });
151
    }
152
    }
152
153
154
    @Override
155
    public void searchFinished() {
156
        super.searchFinished(); 
157
        if (replaceButton.isVisible() && replaceButton.isEnabled()){
158
            replaceButton.requestFocusInWindow();
159
        }
160
    }
161
153
    private class ModelListener implements PropertyChangeListener {
162
    private class ModelListener implements PropertyChangeListener {
154
163
155
        @Override
164
        @Override
Lines 167-174 Link Here
167
176
168
    private void setButtonText() {
177
    private void setButtonText() {
169
        int matches = resultModel.getSelectedMatchesCount();
178
        int matches = resultModel.getSelectedMatchesCount();
170
        replaceButton.setText(NbBundle.getMessage(ResultView.class,
179
        Mnemonics.setLocalizedText(replaceButton, NbBundle.getMessage(ResultView.class, "TEXT_BUTTON_REPLACE", matches));//NOI18N
171
                "TEXT_BUTTON_REPLACE", matches));                       //NOI18N
172
        replaceButton.setEnabled(matches > 0);
180
        replaceButton.setEnabled(matches > 0);
173
    }
181
    }
174
182

Return to bug 229553