mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
plugin_listeners.md: Fix a typo and code snippet formatting
This commit is contained in:
parent
e28ad585bc
commit
483ef0182a
@ -42,10 +42,10 @@ To subscribe to this topic from code, you could use something like the following
|
||||
```java
|
||||
messageBus.connect().subscribe(VirtualFileManager.VFS_CHANGES,
|
||||
new BulkFileListener() {
|
||||
@Override
|
||||
public void after(@NotNull List<? extends VFileEvent> events) {
|
||||
// handle the events
|
||||
}
|
||||
@Override
|
||||
public void after(@NotNull List<? extends VFileEvent> events) {
|
||||
// handle the events
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
@ -96,7 +96,7 @@ package myPlugin;
|
||||
public class MyToolWindowListener implements ToolWindowManagerListener {
|
||||
private final Project project;
|
||||
|
||||
public MyToolwindowListener(Project project) {
|
||||
public MyToolWindowListener(Project project) {
|
||||
this.project = project;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user