mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-143263 Find In Path is not autopopulating a selection from Find Preview window
(cherry picked from commit f65be32)
This commit is contained in:
committed by
Maxim.Mossienko
parent
f6412d9de5
commit
2c2cf3b387
@@ -550,9 +550,14 @@ public class FindDialog extends DialogWrapper {
|
||||
}
|
||||
|
||||
public void setModel(@NotNull FindModel model) {
|
||||
String previousStringToFind = getStringToFind();
|
||||
String newStringToFind = model.getStringToFind();
|
||||
myModel = model;
|
||||
updateReplaceVisibility();
|
||||
updateTitle();
|
||||
if (!Comparing.equal(newStringToFind, previousStringToFind)) {
|
||||
myInputComboBox.getEditor().setItem(newStringToFind);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateFindButton() {
|
||||
|
||||
@@ -172,7 +172,9 @@ public class FindManagerImpl extends FindManager {
|
||||
};
|
||||
myFindDialog.setModal(true);
|
||||
}
|
||||
else if (myFindDialog.getModel().isReplaceState() != model.isReplaceState()) {
|
||||
else if (myFindDialog.getModel().isReplaceState() != model.isReplaceState() ||
|
||||
!Comparing.equal(myFindDialog.getModel().getStringToFind(), model.getStringToFind())
|
||||
) {
|
||||
myFindDialog.setModel(model);
|
||||
myFindDialog.setOkHandler(handler);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user