From 0e43a38d6c9f6e2eb4a7aa4a4eef0ebb6307a3e3 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 9 Mar 2020 16:05:45 +0100 Subject: [PATCH] Revert "Handle PCE in PropertyFoldingBuilder (IDEA-232433)" This reverts commit 7759e5b2 GitOrigin-RevId: c02211b12e5cf66cfbea0267b67625a1076ee4e7 --- .../i18n/folding/PropertyFoldingBuilder.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/PropertyFoldingBuilder.java b/plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/PropertyFoldingBuilder.java index 8a0b9b1e17ef..d0125ecb0516 100644 --- a/plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/PropertyFoldingBuilder.java +++ b/plugins/java-i18n/src/com/intellij/codeInspection/i18n/folding/PropertyFoldingBuilder.java @@ -13,7 +13,6 @@ import com.intellij.lang.properties.psi.Property; import com.intellij.lang.properties.psi.impl.PropertyImpl; import com.intellij.lang.properties.psi.impl.PropertyStubImpl; import com.intellij.openapi.editor.Document; -import com.intellij.openapi.progress.ProcessCanceledException; import com.intellij.openapi.progress.ProgressManager; import com.intellij.openapi.util.Couple; import com.intellij.openapi.util.Key; @@ -287,14 +286,7 @@ public class PropertyFoldingBuilder extends FoldingBuilderEx { if (property == NULL) return false; if (property != null) return true; - final boolean isI18n; - try { - isI18n = JavaI18nUtil.mustBePropertyKey(expr, null); - } - catch (ProcessCanceledException e) { - return false; - } - + final boolean isI18n = JavaI18nUtil.mustBePropertyKey(expr, null); if (!isI18n) { sourcePsi.putUserData(CACHE, NULL); }