mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-144857 Find in Path layout
Prevent regression (IDEA-143263 Find In Path is not autopopulating a selection from Find Preview window)
This commit is contained in:
@@ -1464,8 +1464,8 @@ public class FindDialog extends DialogWrapper implements FindUI {
|
||||
return mask;
|
||||
}
|
||||
|
||||
|
||||
private void initByModel() {
|
||||
@Override
|
||||
public void initByModel() {
|
||||
FindModel myModel = myHelper.getModel();
|
||||
myCbCaseSensitive.setSelected(myModel.isCaseSensitive());
|
||||
myCbWholeWordsOnly.setSelected(myModel.isWholeWordsOnly());
|
||||
|
||||
@@ -635,7 +635,8 @@ public class FindPopupPanel extends JBPanel implements FindUI {
|
||||
myScopeSelectionToolbar.updateActionsImmediately();
|
||||
}
|
||||
|
||||
private void initByModel() {
|
||||
@Override
|
||||
public void initByModel() {
|
||||
FindModel myModel = myHelper.getModel();
|
||||
myCbCaseSensitive.setSelected(myModel.isCaseSensitive());
|
||||
myCbWholeWordsOnly.setSelected(myModel.isWholeWordsOnly());
|
||||
|
||||
@@ -25,6 +25,8 @@ public interface FindUI {
|
||||
|
||||
String getFileTypeMask();
|
||||
|
||||
void initByModel();
|
||||
|
||||
void updateReplaceVisibility();
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -123,6 +123,7 @@ class FindUIHelper implements Disposable {
|
||||
|
||||
public void setModel(@NotNull FindModel model) {
|
||||
myModel = model;
|
||||
myUI.initByModel();
|
||||
myUI.updateReplaceVisibility();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user