Cleanup (warnings)
[idea/community.git] / platform / projectModel-api / src / com / intellij / ProjectTopics.java
index 4d461ef65f80c79976dc082b46f7117588b17c30..d0a6099a238678eae50b3efb3940bd97ea141703 100644 (file)
@@ -5,9 +5,18 @@ import com.intellij.openapi.project.ModuleListener;
 import com.intellij.openapi.roots.ModuleRootListener;
 import com.intellij.util.messages.Topic;
 
-public class ProjectTopics {
-  public static final Topic<ModuleRootListener> PROJECT_ROOTS = new Topic<>("project root changes", ModuleRootListener.class);
-  public static final Topic<ModuleListener> MODULES = new Topic<>("modules added or removed from project", ModuleListener.class);
+public final class ProjectTopics {
+  /**
+   * Project root changes.
+   */
+  @Topic.ProjectLevel
+  public static final Topic<ModuleRootListener> PROJECT_ROOTS = new Topic<>(ModuleRootListener.class);
+
+  /**
+   * Modules added or removed from project.
+   */
+  @Topic.ProjectLevel
+  public static final Topic<ModuleListener> MODULES = new Topic<>(ModuleListener.class, Topic.BroadcastDirection.NONE);
 
   private ProjectTopics() {
   }