mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
handle PCE in lookup painting (EA-65924)
This commit is contained in:
@@ -26,6 +26,7 @@ import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.editor.colors.EditorColorsScheme;
|
||||
import com.intellij.openapi.editor.colors.EditorFontType;
|
||||
import com.intellij.openapi.editor.ex.util.EditorUtil;
|
||||
import com.intellij.openapi.progress.ProcessCanceledException;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.psi.codeStyle.MinusculeMatcher;
|
||||
@@ -144,6 +145,11 @@ public class LookupCellRenderer implements ListCellRenderer {
|
||||
try {
|
||||
item.renderElement(presentation);
|
||||
}
|
||||
catch (ProcessCanceledException e) {
|
||||
LOG.info(e);
|
||||
presentation.setItemTextForeground(JBColor.RED);
|
||||
presentation.setItemText("Error occurred, see the log in Help | Show Log");
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user