mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
i18n: compare unescaped property values
e.g. \n in code and in the property should be the same GitOrigin-RevId: f9a1fc20b3174b9c5274fda9796bcc5cdafb4213
This commit is contained in:
committed by
intellij-monorepo-bot
parent
39d3bdb224
commit
b0b1c5538b
+2
-1
@@ -251,7 +251,7 @@ public class I18nizeQuickFixDialog extends DialogWrapper implements I18nizeQuick
|
||||
PropertiesFile propertiesFile = getPropertyFileByPath(path);
|
||||
if (propertiesFile != null) {
|
||||
for (IProperty property : propertiesFile.getProperties()) {
|
||||
if (Comparing.strEqual(property.getValue(), value) && property.getUnescapedKey() != null) {
|
||||
if (Comparing.strEqual(property.getUnescapedValue(), value) && property.getUnescapedKey() != null) {
|
||||
result.add(property);
|
||||
}
|
||||
}
|
||||
@@ -397,6 +397,7 @@ public class I18nizeQuickFixDialog extends DialogWrapper implements I18nizeQuick
|
||||
myPropertiesFile.setHistory(paths);
|
||||
if (lastPath != null) {
|
||||
myPropertiesFile.setSelectedItem(lastPath);
|
||||
myPropertiesFile.setText(lastPath);
|
||||
}
|
||||
if (myPropertiesFile.getSelectedIndex() == -1 && !paths.isEmpty()) {
|
||||
myPropertiesFile.setText(paths.get(0));
|
||||
|
||||
Reference in New Issue
Block a user