SSR: validate on checkbox change

GitOrigin-RevId: 8cb46e8d3e03bb5cea1bc81474a56951c578a858
This commit is contained in:
Bas Leijdekkers
2019-12-23 15:07:19 +00:00
committed by intellij-monorepo-bot
parent 1eb61032e1
commit 049ba0075c
@@ -486,7 +486,7 @@ public class StructuralSearchDialog extends DialogWrapper implements ProjectMana
myReformat = new JCheckBox(SSRBundle.message("reformat.checkbox"));
myUseStaticImport = new JCheckBox(SSRBundle.message("use.static.import.checkbox"));
OnePixelSplitter replaceEditorPanel = new OnePixelSplitter(false, 1.0f);
final OnePixelSplitter replaceEditorPanel = new OnePixelSplitter(false, 1.0f);
replaceEditorPanel.setLackOfSpaceStrategy(Splitter.LackOfSpaceStrategy.HONOR_THE_SECOND_MIN_SIZE);
myReplaceCriteriaEdit = createEditor(true);
replaceEditorPanel.setFirstComponent(myReplaceCriteriaEdit);
@@ -568,7 +568,9 @@ public class StructuralSearchDialog extends DialogWrapper implements ProjectMana
myRecursive = new JCheckBox(SSRBundle.message("recursive.matching.checkbox"), true);
myRecursive.setVisible(!myReplace);
myRecursive.addActionListener(e -> initiateValidation());
myMatchCase = new JCheckBox(FindBundle.message("find.popup.case.sensitive"), true);
myMatchCase.addActionListener(e -> initiateValidation());
myFileType = UIUtil.detectFileType(mySearchContext);
myDialect = myFileType.getLanguage();
final StructuralSearchProfile profile = StructuralSearchUtil.getProfileByFileType(myFileType);