mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
set focus to scope chooser combo when selecting custom scope
This commit is contained in:
@@ -1240,15 +1240,21 @@ public class FindDialog extends DialogWrapper {
|
||||
bgScope.add(myRbDirectory);
|
||||
bgScope.add(myRbCustomScope);
|
||||
|
||||
ActionListener validateAll = new ActionListener() {
|
||||
myRbProject.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
validateScopeControls();
|
||||
validateFindButton();
|
||||
}
|
||||
};
|
||||
myRbProject.addActionListener(validateAll);
|
||||
myRbCustomScope.addActionListener(validateAll);
|
||||
});
|
||||
myRbCustomScope.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
validateScopeControls();
|
||||
validateFindButton();
|
||||
myScopeCombo.getComboBox().requestFocusInWindow();
|
||||
}
|
||||
});
|
||||
|
||||
myRbDirectory.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user