use of com.intellij.util.messages.MessageBusConnection in project intellij-plugins by JetBrains.
the class OsmorcProjectComponent method initComponent.
@Override
public void initComponent() {
MessageBusConnection connection = myProject.getMessageBus().connect();
connection.subscribe(FrameworkDefinitionListener.TOPIC, new MyFrameworkDefinitionListener());
connection.subscribe(ProjectTopics.MODULES, new MyModuleRenameHandler());
Workspace workspace = BndProjectImporter.findWorkspace(myProject);
if (workspace != null) {
connection.subscribe(VirtualFileManager.VFS_CHANGES, new MyVfsListener());
}
}
Aggregations