void (Configuration configuration) { myConfigurationLoaded = true; myConfiguration = createConfiguration(configuration); final MatchOptions matchOptions = myConfiguration.getMatchOptions(); final ReplaceOptions replaceOptions = myConfiguration.getReplaceOptions(); if (myEditConfigOnly) { myMatchCase.setSelected(matchOptions.isCaseSensitiveMatch()); myInjected.setSelected(false); myReformat.setSelected(replaceOptions.isToReformatAccordingToStyle()); myStaticImport.setSelected(replaceOptions.isToUseStaticImport()); myShortenFqn.setSelected(replaceOptions.isToShortenFQN()); } setSearchTargets(matchOptions); myFileTypeChooser.setSelectedItem(matchOptions.getFileType(), matchOptions.getDialect(), matchOptions.getPatternContext()); final Editor searchEditor = mySearchCriteriaEdit.getEditor(); if (searchEditor != null) { searchEditor.putUserData(SubstitutionShortInfoHandler.CURRENT_CONFIGURATION_KEY, myConfiguration); } setEditorContent(false, matchOptions.getSearchPattern()); final Editor replaceEditor = myReplaceCriteriaEdit.getEditor(); if (replaceEditor != null) { replaceEditor.putUserData(SubstitutionShortInfoHandler.CURRENT_CONFIGURATION_KEY, myConfiguration); } setEditorContent(true, replaceOptions.getReplacement()); updateOptions(); }