git log: re-search on cross in search field [review=ann]

This commit is contained in:
irengrig
2010-12-03 15:55:09 +03:00
parent 0454628b78
commit 306b5d5168
2 changed files with 9 additions and 0 deletions
@@ -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);