Skip to content

Commit

Permalink
Merge pull request #10233 from DohaRamadan/branch1
Browse files Browse the repository at this point in the history
added number of library items as a tooltip
  • Loading branch information
Siedlerchr committed Sep 1, 2023
2 parents 2195579 + 65699e0 commit 265f508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
- We added support for the Finnish language. [#10183](https://github.com/JabRef/jabref/pull/10183)
- We added the option to automatically replaces illegal characters in the filename when adding a file to JabRef. [#10182](https://github.com/JabRef/jabref/issues/10182)
- We added a privacy policy. [#10064](https://github.com/JabRef/jabref/issues/10064)
- We added a tooltip to show the number of entries in a group [#10208](https://github.com/JabRef/jabref/issues/10208)

### Changed

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/jabref/gui/groups/GroupTreeView.java
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ private StackPane createNumberCell(GroupNodeViewModel group) {
if (shouldDisplayGroupCount) {
node.getStyleClass().add("hits");
text.textProperty().bind(group.getHits().map(Number::intValue).map(this::getFormattedNumber));
Tooltip tooltip = new Tooltip();
tooltip.textProperty().bind(group.getHits().asString());
Tooltip.install(text, tooltip);
}
});
text.getStyleClass().setAll("text");
Expand Down

0 comments on commit 265f508

Please sign in to comment.