Skip to content

Commit b54535f

Browse files
committed
Merge remote-tracking branch 'upstream/master' into librarypropertiestofx
* upstream/master: (30 commits) Bump applicationinsights-core from 2.3.0 to 2.3.1 (#4656) Bump applicationinsights-logging-log4j2 from 2.3.0 to 2.3.1 (#4657) Bump bcprov-jdk15on from 1.60 to 1.61 (#4653) Bump log4j-jcl from 2.11.1 to 2.11.2 (#4646) Bump log4j-api from 2.11.1 to 2.11.2 (#4650) Bump assertj-swing-junit from 3.8.0 to 3.9.2 (#4647) Bump log4j-jul from 2.11.1 to 2.11.2 (#4648) Bump log4j-slf4j18-impl from 2.11.1 to 2.11.2 (#4649) Bump log4j-core from 2.11.1 to 2.11.2 (#4651) Remove old code for PDF import (#4634) Reorder conditional checks Automatically created groups with Field to group by as entrytype (#4539) (#4555) Fix for issue 4641: Remove usage of TempDirectory extension from junit-pioneer (#4644) Edit localization file Add Integrity check for books with edition reported as 1 Use 'junit-jupiter' aggregator module (#4640) Bump junit-jupiter-params from 5.3.2 to 5.4.0 (#4638) Bump junit-vintage-engine from 5.3.2 to 5.4.0 (#4637) Bump junit-platform-launcher from 1.3.2 to 1.4.0 (#4636) Bump junit-jupiter-api from 5.3.2 to 5.4.0 (#4639) ... # Conflicts: # src/main/java/org/jabref/preferences/PreferencesService.java
2 parents d246d37 + d95c06b commit b54535f

File tree

128 files changed

+1201
-3146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+1201
-3146
lines changed

.gitignore

+8-12
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ status.md
1010
# Install4J
1111
install4j6/
1212

13+
# Snap
14+
parts/
15+
stage/
16+
prime/
17+
*.snap
18+
jabref_source.tar.bz2
19+
snap/.snapcraft/
20+
1321
# Gradle
1422
# generated when `gradlew --gui` is called
1523
ui/
@@ -23,18 +31,6 @@ ui/
2331
jabref.xml
2432
*.sonargraph
2533

26-
# Snapcraft - JabRef places the files into buildres/snapcraft
27-
snap/
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
3834
# Created by https://www.gitignore.io/api/gradle,java,jabref,intellij,eclipse,netbeans,windows,linux,macos,node,snapcraft
3935

4036
### Eclipse ###

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
4848
- We updated updated the Related Articles tab to accept JSON from the new version of the Mr. DLib service
4949
- We added an option in the preference dialog box that allows user to choose behavior after dragging and dropping files in Entry Editor. [#4356](https://github.com/JabRef/jabref/issues/4356)
5050
- We added the ability to have an export preference where previously "File"-->"Export"/"Export selected entries" would not save the user's preference[#4495](https://github.com/JabRef/jabref/issues/4495)
51+
- For automatically created groups, added ability to filter groups by entry type. [#4539](https://github.com/JabRef/jabref/issues/4539)
5152
- We added the ability to add field names from the Preferences Dialog [#4546](https://github.com/JabRef/jabref/issues/4546)
5253
- We added the ability change the column widths directly in the main table. [#4546](https://github.com/JabRef/jabref/issues/4546)
5354
- We added the ability to execute default action in dialog by using with <kbd>Ctrl</kbd> + <kbd>Enter</kbd> combination [#4496](https://github.com/JabRef/jabref/issues/4496)

build.gradle

+16-22
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ dependencies {
102102
compile group: 'org.apache.tika', name: 'tika-core', version: '1.20'
103103

104104
// required for reading write-protected PDFs - see https://github.com/JabRef/jabref/pull/942#issuecomment-209252635
105-
compile 'org.bouncycastle:bcprov-jdk15on:1.60'
105+
compile 'org.bouncycastle:bcprov-jdk15on:1.61'
106106

107107
compile 'commons-cli:commons-cli:1.4'
108108

@@ -120,7 +120,7 @@ dependencies {
120120
antlr4 'org.antlr:antlr4:4.7.2'
121121
compile 'org.antlr:antlr4-runtime:4.7.2'
122122

123-
compile 'mysql:mysql-connector-java:8.0.14'
123+
compile 'mysql:mysql-connector-java:8.0.15'
124124

125125
compile 'org.postgresql:postgresql:42.2.5'
126126

@@ -147,32 +147,29 @@ dependencies {
147147

148148
// >1.8.0-beta is required for java 9 compatibility
149149
compile 'org.slf4j:slf4j-api:1.8.0-beta2'
150-
compile 'org.apache.logging.log4j:log4j-slf4j18-impl:2.11.1'
151-
compile 'org.apache.logging.log4j:log4j-jcl:2.11.1'
152-
compile 'org.apache.logging.log4j:log4j-api:2.11.1'
153-
compile 'org.apache.logging.log4j:log4j-core:2.11.1'
150+
compile 'org.apache.logging.log4j:log4j-slf4j18-impl:2.11.2'
151+
compile 'org.apache.logging.log4j:log4j-jcl:2.11.2'
152+
compile 'org.apache.logging.log4j:log4j-api:2.11.2'
153+
compile 'org.apache.logging.log4j:log4j-core:2.11.2'
154154

155155
compile 'de.undercouch:citeproc-java:1.0.1'
156156

157157
compile 'com.github.tomtung:latex2unicode_2.12:0.2.2'
158158

159159
errorproneJavac 'com.google.errorprone:javac:1.8.0-u20'
160160

161-
compile group: 'com.microsoft.azure', name: 'applicationinsights-core', version: '2.3.0'
162-
compile group: 'com.microsoft.azure', name: 'applicationinsights-logging-log4j2', version: '2.3.0'
161+
compile group: 'com.microsoft.azure', name: 'applicationinsights-core', version: '2.3.1'
162+
compile group: 'com.microsoft.azure', name: 'applicationinsights-logging-log4j2', version: '2.3.1'
163163

164-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.2'
165-
testCompile 'org.junit.jupiter:junit-jupiter-params:5.3.2'
166-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.2'
167-
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.3.2'
168-
testCompile 'org.junit.platform:junit-platform-launcher:1.3.2'
164+
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.0'
165+
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.4.0'
166+
testCompile 'org.junit.platform:junit-platform-launcher:1.4.0'
169167

170-
testCompile 'org.junit-pioneer:junit-pioneer:0.3.0'
171168
testRuntime 'org.apache.logging.log4j:log4j-core:2.11.1'
172-
testRuntime 'org.apache.logging.log4j:log4j-jul:2.11.1'
173-
testCompile 'org.mockito:mockito-core:2.23.4'
174-
testCompile 'com.github.tomakehurst:wiremock:2.20.0'
175-
testCompile 'org.assertj:assertj-swing-junit:3.8.0'
169+
testRuntime 'org.apache.logging.log4j:log4j-jul:2.11.2'
170+
testCompile 'org.mockito:mockito-core:2.24.0'
171+
testCompile 'com.github.tomakehurst:wiremock:2.21.0'
172+
testCompile 'org.assertj:assertj-swing-junit:3.9.2'
176173
testCompile 'org.reflections:reflections:0.9.11'
177174
testCompile 'org.xmlunit:xmlunit-core:2.6.2'
178175
testCompile 'org.xmlunit:xmlunit-matchers:2.6.2'
@@ -181,7 +178,7 @@ dependencies {
181178
testCompile "org.testfx:testfx-core:4.0.+"
182179
testCompile "org.testfx:testfx-junit5:4.0.+"
183180

184-
checkstyle 'com.puppycrawl.tools:checkstyle:8.16'
181+
checkstyle 'com.puppycrawl.tools:checkstyle:8.17'
185182
}
186183

187184
jacoco {
@@ -192,9 +189,6 @@ dependencyUpdates {
192189
outputFormatter = "json"
193190
}
194191

195-
//We have to use this as long as junit-pioneer has no official release
196-
dependencyUpdates.revision = 'integration'
197-
198192
// We have some dependencies which cannot be updated due to various reasons.
199193
dependencyUpdates.resolutionStrategy = {
200194
componentSelection { rules ->

buildres/snapcraft/jabref.desktop snap/gui/jabref.desktop

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GenericName=BibTeX Editor
44
Comment=JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format.
55
Type=Application
66
Terminal=false
7-
Icon=${SNAP}/meta/gui/JabRef-icon-256.png
7+
Icon=${SNAP}/meta/gui/jabref.png
88
Exec=jabref %U
99
Keywords=bibtex;biblatex;latex;bibliography
1010
Categories=Office;
File renamed without changes.

snap/snapcraft.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: jabref
2+
version: "git"
3+
version-script: cat build.gradle | grep "^version =" | cut -d'"' -f2
4+
#icon: snap/gui/jabref.png
5+
summary: Bibliography manager
6+
description: JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format.
7+
8+
grade: devel
9+
confinement: strict
10+
11+
architectures:
12+
- build-on: amd64
13+
- build-on: i386
14+
15+
apps:
16+
jabref:
17+
command: desktop-launch java -jar $SNAP/jar/JabRef-$SNAP_VERSION.jar
18+
environment:
19+
_JAVA_OPTIONS: "-Duser.home=$SNAP_USER_DATA"
20+
plugs:
21+
- desktop
22+
- desktop-legacy
23+
- wayland
24+
- unity7
25+
- home
26+
- opengl
27+
- network-bind
28+
- removable-media
29+
30+
parts:
31+
jabref:
32+
plugin: gradle
33+
source: .
34+
source-type: git
35+
stage-packages:
36+
- openjdk-8-jre
37+
- openjfx
38+
- x11-utils
39+
gradle-options: [snapJar, -xtest]
40+
gradle-output-dir: 'build/releases'
41+
after: [desktop-gtk2]

snapcraft.yaml

-35
This file was deleted.

src/main/java/org/jabref/gui/DuplicateResolverDialog.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private void init(BibEntry one, BibEntry two, DuplicateResolverType type) {
6868
second = new ButtonType(Localization.lang("Remove entry from import"), ButtonData.APPLY);
6969
both = new ButtonType(Localization.lang("Keep both"), ButtonData.APPLY);
7070
me = new MergeEntries(one, two, Localization.lang("Old entry"),
71-
Localization.lang("From import"), frame.getCurrentBasePanel().getBibDatabaseContext().getMode());
71+
Localization.lang("From import"), frame.getCurrentBasePanel().getBibDatabaseContext().getMode());
7272
break;
7373
case DUPLICATE_SEARCH_WITH_EXACT:
7474
first = new ButtonType(Localization.lang("Keep left"), ButtonData.APPLY);
@@ -84,7 +84,7 @@ private void init(BibEntry one, BibEntry two, DuplicateResolverType type) {
8484
second = new ButtonType(Localization.lang("Do not import entry"), ButtonData.APPLY);
8585
both = new ButtonType(Localization.lang("Import and keep old entry"), ButtonData.APPLY);
8686
me = new MergeEntries(one, two, Localization.lang("Old entry"),
87-
Localization.lang("From import"), frame.getCurrentBasePanel().getBibDatabaseContext().getMode());
87+
Localization.lang("From import"), frame.getCurrentBasePanel().getBibDatabaseContext().getMode());
8888
break;
8989
}
9090
if (removeExactVisible) {

src/main/java/org/jabref/gui/DuplicateSearch.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private void askResolveStrategy(DuplicateSearchResult result, BibEntry first, Bi
127127
DuplicateResolverResult resolverResult = dialog.showAndWait().orElse(DuplicateResolverResult.BREAK);
128128

129129
if ((resolverResult == DuplicateResolverResult.KEEP_LEFT)
130-
|| (resolverResult == DuplicateResolverResult.AUTOREMOVE_EXACT)) {
130+
|| (resolverResult == DuplicateResolverResult.AUTOREMOVE_EXACT)) {
131131
result.remove(second);
132132
if (resolverResult == DuplicateResolverResult.AUTOREMOVE_EXACT) {
133133
autoRemoveExactDuplicates.set(true); // Remember choice
@@ -167,7 +167,7 @@ private void handleDuplicates(DuplicateSearchResult result) {
167167
}
168168

169169
dialogService.notify(Localization.lang("Duplicates found") + ": " + duplicateCount.get() + ' '
170-
+ Localization.lang("pairs processed") + ": " + result.getDuplicateCount());
170+
+ Localization.lang("pairs processed") + ": " + result.getDuplicateCount());
171171
compoundEdit.end();
172172
panel.getUndoManager().addEdit(compoundEdit);
173173

src/main/java/org/jabref/gui/EntryType.fxml

+39-37
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,43 @@
1212
<?import javafx.scene.layout.GridPane?>
1313
<?import javafx.scene.layout.RowConstraints?>
1414
<?import javafx.scene.layout.VBox?>
15-
16-
<DialogPane prefWidth="476.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.jabref.gui.EntryTypeView">
17-
<buttonTypes>
18-
<ButtonType fx:constant="CANCEL" />
19-
<ButtonType fx:id="generateButton" buttonData="OK_DONE" text="%Generate" />
20-
</buttonTypes>
15+
<DialogPane xmlns:fx="http://javafx.com/fxml/1" prefWidth="476.0" xmlns="http://javafx.com/javafx/8.0.171"
16+
fx:controller="org.jabref.gui.EntryTypeView">
17+
<buttonTypes>
18+
<ButtonType fx:constant="CANCEL"/>
19+
<ButtonType fx:id="generateButton" buttonData="OK_DONE" text="%Generate"/>
20+
</buttonTypes>
2121
<content>
22-
<VBox prefHeight="200.0" prefWidth="400.0">
23-
<children>
24-
<TitledPane fx:id="biblatexTitlePane" animated="false" collapsible="false" text="Biblatex">
25-
<content>
26-
<FlowPane fx:id="biblatexPane" prefHeight="200.0" prefWidth="200.0" />
27-
</content>
28-
</TitledPane>
29-
<TitledPane fx:id="bibTexTitlePane" animated="false" collapsible="false" text="BibTeX">
30-
<content>
31-
<FlowPane fx:id="bibTexPane" prefHeight="200.0" prefWidth="200.0" />
32-
</content>
33-
</TitledPane>
34-
<TitledPane fx:id="ieeeTranTitlePane" animated="false" collapsible="false" text="IEEETran">
35-
<content>
36-
<FlowPane fx:id="ieeetranPane" prefHeight="200.0" prefWidth="200.0" />
37-
</content>
38-
</TitledPane>
39-
<TitledPane fx:id="customTitlePane" animated="false" collapsible="false" text="%Custom">
40-
<content>
41-
<FlowPane fx:id="customPane" prefHeight="200.0" prefWidth="200.0" />
42-
</content>
43-
</TitledPane>
44-
<GridPane alignment="CENTER">
22+
<VBox prefHeight="200.0" prefWidth="400.0">
23+
<children>
24+
<TitledPane fx:id="biblatexTitlePane" animated="false" collapsible="false" text="Biblatex">
25+
<content>
26+
<FlowPane fx:id="biblatexPane" prefHeight="200.0" prefWidth="200.0"/>
27+
</content>
28+
</TitledPane>
29+
<TitledPane fx:id="bibTexTitlePane" animated="false" collapsible="false" text="BibTeX">
30+
<content>
31+
<FlowPane fx:id="bibTexPane" prefHeight="200.0" prefWidth="200.0"/>
32+
</content>
33+
</TitledPane>
34+
<TitledPane fx:id="ieeeTranTitlePane" animated="false" collapsible="false" text="IEEETran">
35+
<content>
36+
<FlowPane fx:id="ieeetranPane" prefHeight="200.0" prefWidth="200.0"/>
37+
</content>
38+
</TitledPane>
39+
<TitledPane fx:id="customTitlePane" animated="false" collapsible="false" text="%Custom">
40+
<content>
41+
<FlowPane fx:id="customPane" prefHeight="200.0" prefWidth="200.0"/>
42+
</content>
43+
</TitledPane>
44+
<GridPane alignment="CENTER">
4545
<children>
46-
<Label text="%ID type"/>
47-
<ComboBox fx:id="idBasedFetchers" onAction="#focusTextField" prefHeight="30.0" prefWidth="300.0" GridPane.columnIndex="1" />
48-
<Label text="%ID" GridPane.rowIndex="1" />
49-
<TextField fx:id="idTextField" onAction="#runFetcherWorker" prefHeight="30.0" prefWidth="300.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
46+
<Label text="%ID type"/>
47+
<ComboBox fx:id="idBasedFetchers" onAction="#focusTextField" prefHeight="30.0" prefWidth="300.0"
48+
GridPane.columnIndex="1"/>
49+
<Label text="%ID" GridPane.rowIndex="1" />
50+
<TextField fx:id="idTextField" onAction="#runFetcherWorker" prefHeight="30.0" prefWidth="300.0"
51+
GridPane.columnIndex="1" GridPane.rowIndex="1"/>
5052
</children>
5153
<columnConstraints>
5254
<ColumnConstraints hgrow="SOMETIMES" maxWidth="122.0" minWidth="10.0" prefWidth="100.0" />
@@ -56,11 +58,11 @@
5658
<Insets bottom="4.0" left="4.0" right="4.0" top="4.0" />
5759
</opaqueInsets>
5860
<rowConstraints>
59-
<RowConstraints minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
60-
<RowConstraints minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
61+
<RowConstraints minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES"/>
62+
<RowConstraints minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES"/>
6163
</rowConstraints>
6264
</GridPane>
63-
</children>
64-
</VBox>
65+
</children>
66+
</VBox>
6567
</content>
6668
</DialogPane>

src/main/java/org/jabref/gui/JabRefFrame.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ private MenuBar createMenu() {
923923
);
924924

925925
options.getItems().addAll(
926-
factory.createMenuItem(StandardActions.SHOW_PREFS, new ShowPreferencesAction(this)),
926+
factory.createMenuItem(StandardActions.SHOW_PREFS, new ShowPreferencesAction(this, Globals.TASK_EXECUTOR)),
927927

928928
new SeparatorMenuItem(),
929929

@@ -939,8 +939,7 @@ private MenuBar createMenu() {
939939

940940
factory.createMenuItem(StandardActions.MANAGE_CONTENT_SELECTORS, new OldDatabaseCommandWrapper(Actions.MANAGE_SELECTORS, this, Globals.stateManager)),
941941
factory.createMenuItem(StandardActions.CUSTOMIZE_ENTRY_TYPES, new CustomizeEntryAction(this)),
942-
factory.createMenuItem(StandardActions.MANAGE_CITE_KEY_PATTERNS, new BibtexKeyPatternAction(this))
943-
);
942+
factory.createMenuItem(StandardActions.MANAGE_CITE_KEY_PATTERNS, new BibtexKeyPatternAction(this)));
944943

945944
help.getItems().addAll(
946945
factory.createMenuItem(StandardActions.HELP, HelpAction.getMainHelpPageCommand()),

0 commit comments

Comments
 (0)