From b3f35ec19a2f9383feab1b3faf97109214bdc780 Mon Sep 17 00:00:00 2001 From: Galileo Sartor Date: Sat, 26 Jan 2019 17:52:37 +0100 Subject: [PATCH 001/184] Update snapcraft.yaml Move to snap folder --- .gitignore | 12 ------ .../snapcraft => snap/gui}/jabref.desktop | 2 +- .../gui/jabref.png | Bin snap/snapcraft.yaml | 34 +++++++++++++++++ snapcraft.yaml | 35 ------------------ 5 files changed, 35 insertions(+), 48 deletions(-) rename {buildres/snapcraft => snap/gui}/jabref.desktop (90%) rename buildres/snapcraft/JabRef-icon-256.png => snap/gui/jabref.png (100%) create mode 100644 snap/snapcraft.yaml delete mode 100644 snapcraft.yaml diff --git a/.gitignore b/.gitignore index eef074f6e45..7c7850841ea 100644 --- a/.gitignore +++ b/.gitignore @@ -23,18 +23,6 @@ ui/ jabref.xml *.sonargraph -# Snapcraft - JabRef places the files into buildres/snapcraft -snap/ - - - - - - - - - - # Created by https://www.gitignore.io/api/gradle,java,jabref,intellij,eclipse,netbeans,windows,linux,macos,node,snapcraft ### Eclipse ### diff --git a/buildres/snapcraft/jabref.desktop b/snap/gui/jabref.desktop similarity index 90% rename from buildres/snapcraft/jabref.desktop rename to snap/gui/jabref.desktop index ef63a896d2d..3444b73fc8a 100644 --- a/buildres/snapcraft/jabref.desktop +++ b/snap/gui/jabref.desktop @@ -4,7 +4,7 @@ GenericName=BibTeX Editor Comment=JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format. Type=Application Terminal=false -Icon=${SNAP}/meta/gui/JabRef-icon-256.png +Icon=${SNAP}/meta/gui/jabref.png Exec=jabref %U Keywords=bibtex;biblatex;latex;bibliography Categories=Office; diff --git a/buildres/snapcraft/JabRef-icon-256.png b/snap/gui/jabref.png similarity index 100% rename from buildres/snapcraft/JabRef-icon-256.png rename to snap/gui/jabref.png diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000000..6873178bf86 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,34 @@ +name: jabref +version: "git" +version-script: cat build.gradle | grep "^version =" | cut -d'"' -f2 +#icon: snap/gui/icon.png +summary: Bibliography manager +description: JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format. + +grade: devel +confinement: strict + +apps: + jabref: + command: desktop-launch java -jar $SNAP/jar/JabRef-$SNAP_VERSION.jar + environment: + JAVA_OPTS: "-Djava.util.prefs.systemRoot=$SNAP_USER_DATA/.java -Djava.util.prefs.userRoot=$SNAP_USER_DATA/.java/.userPrefs" + plugs: + - desktop + - desktop-legacy + - wayland + - unity7 + - home + - network-bind + +parts: + jabref: + plugin: gradle + source: . + stage-packages: + - openjdk-8-jre + - openjfx + - x11-utils + gradle-options: [snapJar] + gradle-output-dir: 'build/releases' + after: [desktop-gtk3] diff --git a/snapcraft.yaml b/snapcraft.yaml deleted file mode 100644 index 0daa48c83c4..00000000000 --- a/snapcraft.yaml +++ /dev/null @@ -1,35 +0,0 @@ -# based on https://github.com/snapcore/snapcraft/blob/master/demos/gradle/snap/snapcraft.yaml - -name: jabref - -# the version string 4.2-dev is replaced by scripts/run-snapcraft.sh with the current version provided in build.gradle -version: '4.2-dev' - -summary: Bibliography manager -icon: buildres/snapcraft/JabRef-icon-256.png -description: JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format. - -# only with the following set to stable + strict, we can do a full release - -# see https://snapcraft.io/docs/reference/channels -# stable | devel -grade: devel - -# see https://snapcraft.io/docs/reference/confinement -# strict | devmode -confinement: strict - -apps: - jabref: - command: desktop-launch java -jar $SNAP/jar/JabRef-4.2-dev.jar - plugs: [desktop, desktop-legacy, wayland, unity7, home, network-bind] - desktop: ../buildres/snapcraft/jabref.desktop - -parts: - jabref: - plugin: gradle - source: . - stage-packages: [default-jre, openjfx, x11-utils] - gradle-options: [snapJar] - gradle-output-dir: 'build/releases' - after: [desktop-gtk3] From e18d236f42954efdc1e86e320db2ae7a45c76899 Mon Sep 17 00:00:00 2001 From: Siedlerchr Date: Sat, 26 Jan 2019 20:49:07 +0100 Subject: [PATCH 002/184] [WIP] Convert LibraryProperties to JavaFX First part of view and viewmodel --- .../dbproperties/LibraryPropertiesDialog.fxml | 131 ++++++++++++++++++ .../LibraryPropertiesDialogView.java | 112 +++++++++++++++ .../LibraryPropertiesDialogViewModel.java | 75 ++++++++++ 3 files changed, 318 insertions(+) create mode 100644 src/main/java/org/jabref/gui/dbproperties/LibraryPropertiesDialog.fxml create mode 100644 src/main/java/org/jabref/gui/dbproperties/LibraryPropertiesDialogView.java create mode 100644 src/main/java/org/jabref/gui/dbproperties/LibraryPropertiesDialogViewModel.java diff --git a/src/main/java/org/jabref/gui/dbproperties/LibraryPropertiesDialog.fxml b/src/main/java/org/jabref/gui/dbproperties/LibraryPropertiesDialog.fxml new file mode 100644 index 00000000000..e344382c505 --- /dev/null +++ b/src/main/java/org/jabref/gui/dbproperties/LibraryPropertiesDialog.fxml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +