mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
project.md: Clean up code snippets
This commit is contained in:
parent
6d08d91e1f
commit
cf3f47f51e
@ -118,10 +118,12 @@ Refer to the [project_model](%gh-sdk-samples%/project_model/src/main/java/org/in
|
||||
To receive notifications about changes in project structure (modules or libraries being added or removed, module dependencies being changed, and so on), use the [message bus](messaging_infrastructure.md) and the `ProjectTopics.PROJECT_ROOTS` topic:
|
||||
|
||||
```java
|
||||
project.getMessageBus().connect().subscribe(ProjectTopics.PROJECT_ROOTS,
|
||||
project.getMessageBus().connect().subscribe(
|
||||
ProjectTopics.PROJECT_ROOTS,
|
||||
new ModuleRootListener() {
|
||||
@Override
|
||||
public void rootsChanged(ModuleRootEvent event) {
|
||||
public void rootsChanged(@NotNull ModuleRootEvent event) {
|
||||
// action
|
||||
}
|
||||
});
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user