Skip to content

Commit

Permalink
Implemented a select all button for the library import function (issue
Browse files Browse the repository at this point in the history
…#7786) (#7808)

* We added a select all button for the library import function (issue 7786).

* Update selectAllEntries() to use .checkAll()
  • Loading branch information
brapana committed Jun 9, 2021
1 parent 9d1c448 commit f2b51fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
- We added a feature that allows the user to choose whether to trust the target site when unable to find a valid certification path from the file download site. [#7616](https://github.com/JabRef/jabref/issues/7616)
- We added a feature that allows the user to open all linked files of multiple selected entries by "Open file" option. [#6966](https://github.com/JabRef/jabref/issues/6966)
- We added a keybinding preset for new entries. [#7705](https://github.com/JabRef/jabref/issues/7705)
- We added a select all button for the library import function. [#7786](https://github.com/JabRef/jabref/issues/7786)

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<CheckListView fx:id="entriesListView" VBox.vgrow="ALWAYS"/>
<HBox spacing="4">
<Button onAction="#selectAllNewEntries" styleClass="text-button" text="%Select all new entries"/>
<Button onAction="#selectAllEntries" styleClass="text-button" text="%Select all entries"/>
<Button onAction="#unselectAll" styleClass="text-button" text="%Unselect all"/>
<HBox HBox.hgrow="ALWAYS"/>
<GridPane hgap="4.0" vgap="4.0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,9 @@ public void selectAllNewEntries() {
}
}
}

public void selectAllEntries() {
unselectAll();
entriesListView.getCheckModel().checkAll();
}
}
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,7 @@ Cancel\ import=Cancel import
Continue\ with\ import=Continue with import
Import\ canceled=Import canceled
Select\ all\ new\ entries=Select all new entries
Select\ all\ entries=Select all entries
Total\ items\ found\:=Total items found:
Selected\ items\:=Selected items:
Download\ linked\ online\ files=Download linked online files
Expand Down

0 comments on commit f2b51fb

Please sign in to comment.