Skip to content

Commit

Permalink
Update code-howtos.md (#6393)
Browse files Browse the repository at this point in the history
fix two typos in code-howtos.md
  • Loading branch information
LuckyOne09 authored May 2, 2020
1 parent 1f65570 commit f59e7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/code-howtos.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Any listening method has to be annotated with `@Subscribe` keyword and must have
### Posting an object
`post(object)` posts an object trough the `EventBus` which has been used to register the listening/subscribing methods.
`post(object)` posts an object through the `EventBus` which has been used to register the listening/subscribing methods.
### Short example
Expand Down Expand Up @@ -111,7 +111,7 @@ public class Main {
The `event` package contains some specific events which occure in JabRef.
For example: Every time an entry was added to the database a new `EntryAddedEvent` is sent trough the `eventBus` which is located in `BibDatabase`.
For example: Every time an entry was added to the database a new `EntryAddedEvent` is sent through the `eventBus` which is located in `BibDatabase`.
If you want to catch the event you'll have to register your listener class with the `registerListener(Object listener)` method in `BibDatabase`. `EntryAddedEvent` provides also methods to get the inserted `BibEntry`.

Expand Down

0 comments on commit f59e7ac

Please sign in to comment.