mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not expect getMarkupModel() returns EditorMarkupModel because somebody could have overridden that
GitOrigin-RevId: e45fd606d29672dd28d321527cf681dc672d16de
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f0a85b9b8e
commit
8a9f7dff80
+4
-2
@@ -64,8 +64,10 @@ public class DefaultHighlightInfoProcessor extends HighlightInfoProcessor {
|
||||
}
|
||||
|
||||
static void repaintErrorStripeAndIcon(@NotNull Editor editor, @NotNull Project project) {
|
||||
EditorMarkupModelImpl markup = (EditorMarkupModelImpl)editor.getMarkupModel();
|
||||
markup.repaintTrafficLightIcon();
|
||||
MarkupModel markup = editor.getMarkupModel();
|
||||
if (markup instanceof EditorMarkupModelImpl) {
|
||||
((EditorMarkupModelImpl)markup).repaintTrafficLightIcon();
|
||||
}
|
||||
ErrorStripeUpdateManager.getInstance(project).repaintErrorStripePanel(editor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user