From ec4f5e571f969cde764185cc15e8223c82f04886 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 30 Mar 2015 15:27:37 +0300 Subject: [PATCH] delay initialization to withstand absence of some components in upsource --- .../jetbrains/plugins/groovy/dsl/DslErrorReporterImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/DslErrorReporterImpl.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/DslErrorReporterImpl.java index a731c3a2c043..c61e9c304b7f 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/DslErrorReporterImpl.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/dsl/DslErrorReporterImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,10 +29,9 @@ import javax.swing.event.HyperlinkEvent; public class DslErrorReporterImpl extends DslErrorReporter { private static final Logger LOG = Logger.getInstance("#org.jetbrains.plugins.groovy.dsl.GroovyDslFileIndex"); - public static final NotificationGroup NOTIFICATION_GROUP = - new NotificationGroup("Groovy DSL errors", NotificationDisplayType.BALLOON, true); + private final NotificationGroup NOTIFICATION_GROUP = new NotificationGroup("Groovy DSL errors", NotificationDisplayType.BALLOON, true); - static { + public DslErrorReporterImpl() { NotificationsConfigurationImpl.remove("Groovy DSL parsing"); }