mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git log: re-search on cross in search field [review=ann]
This commit is contained in:
@@ -120,6 +120,7 @@ public class SearchTextField extends JPanel {
|
||||
myClearFieldLabel.addMouseListener(new MouseAdapter() {
|
||||
public void mousePressed(MouseEvent e) {
|
||||
myTextField.setText("");
|
||||
onFieldCleared();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -146,6 +147,9 @@ public class SearchTextField extends JPanel {
|
||||
}
|
||||
}
|
||||
|
||||
protected void onFieldCleared() {
|
||||
}
|
||||
|
||||
protected void onFocusLost() {
|
||||
}
|
||||
|
||||
|
||||
@@ -50,6 +50,11 @@ public abstract class SearchFieldAction extends AnAction implements CustomCompon
|
||||
myField.addCurrentTextToHistory();
|
||||
actionPerformed(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFieldCleared() {
|
||||
actionPerformed(null);
|
||||
}
|
||||
};
|
||||
myComponent = new JPanel();
|
||||
final BoxLayout layout = new BoxLayout(myComponent, BoxLayout.X_AXIS);
|
||||
|
||||
Reference in New Issue
Block a user