Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code-howtos.md #6393

Merged
merged 1 commit into from
May 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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