-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[WIP] Main table JavaFX migration #3621
Merged
Merged
Changes from 44 commits
Commits
Show all changes
294 commits
Select commit
Hold shift + click to select a range
8534235
Revert sorting fix
tobiasdiez 4e5f46b
Now fix sorting for real
tobiasdiez 1d1b3e7
Fix changelog
tobiasdiez 63f962d
Fix filtering
tobiasdiez 904a287
Fix exception in external file type dialog
tobiasdiez 298e7fe
Entry changes should mark panel as changed
lenhard 88da81b
Merge branch 'maintable-beta' of github.com:JabRef/jabref into mainta…
lenhard 7a711bb
Merge remote-tracking branch 'origin/master' into maintable-beta
koppor be9be8f
Merge remote-tracking branch 'origin/master' into maintable-beta
koppor dbc4711
Merge remote-tracking branch 'JabRef/maintable-beta' into javafxGloba…
tobiasdiez 2833335
Fix build
tobiasdiez 6d7d4e5
Fix import orders
tobiasdiez 94027da
Show main table
tobiasdiez 86d0393
Reimplement copy and paste of entries (#3681)
tobiasdiez 8130a8f
Fix annotation tab (#3682)
tobiasdiez 08f4cf4
fix checkstyle and implement singleton using enum
Siedlerchr 07e6b89
another round at checkstyle
Siedlerchr 7fb3311
checkstyle
Siedlerchr 2fc5a34
Add test menu
tobiasdiez 4ea3f35
Visually improve display of maintable (#3689)
tobiasdiez 40a9df3
Fix select entries my holding mouse (#3683)
tobiasdiez ddc5325
Start reworking file menu
tobiasdiez a319de7
Finish file menu
tobiasdiez 3e670d0
Migrate edit menu
tobiasdiez 29565c5
Show correct title and image
tobiasdiez 0141abb
Make escape close entry editor when no field is selected
Siedlerchr 1cf45c2
Convert options menu to javafx
Siedlerchr 6033faa
Convert side pane to JavaFX
tobiasdiez 8701680
Merge branch 'javafxGlobalEverything' of https://github.com/JabRef/ja…
tobiasdiez 284eeab
Fix import
tobiasdiez 7e2c537
convert XMP Action and SubDatabase action
Siedlerchr 407a1e4
Add Tools menu
Siedlerchr d3cd8aa
convert help menu
Siedlerchr 952b39c
Migrate view menu
tobiasdiez 249dc8a
reduce new FXDialogService
tobiasdiez 804eae0
Replace a few swing dialogs by JavaFX
tobiasdiez e7ca282
Change color of main menu to ugly pink
tobiasdiez 3c8a07b
Add help action to menu
tobiasdiez 8165e0e
Convert global search to JavFX
tobiasdiez c75b5d2
Migrate toolbar
tobiasdiez a46d3f7
convert some more menus
Siedlerchr fd6dec8
Migrate rest of quality menu
tobiasdiez 71b291d
remove synchronize file links
Siedlerchr 5fe961e
Add push to external application menu entry
tobiasdiez 9cfcd5c
Fix a few NPEs
tobiasdiez 262a283
Remove unused code
tobiasdiez 555c9a6
Merge remote-tracking branch 'upstream/javafxGlobalEverything' into j…
Siedlerchr 244c74f
Fix copying of linked files dialog
Siedlerchr a32f579
Add the Menubar to the Titlebar in MacOS (#3751)
LinusDietz 6152e8d
Merge with master
lenhard 963ec92
Fix side pane resize issues
tobiasdiez 2fb0f44
Remove strange code style profile
tobiasdiez 840bdf5
Fix build
tobiasdiez 8cbe6e7
Merge branch 'maintable-beta' of https://github.com/JabRef/jabref int…
tobiasdiez eeb603b
Merge pull request #3684 from JabRef/javafxGlobalEverything
tobiasdiez 55090ae
Fix checkstyle issues
lenhard 58cfd7f
Merge branch 'master' into maintable-beta
lenhard 0fbb779
Pressing ESC now clears search field
mohamean ad8b60f
First available entry selected after pressing ESC as well
mohamean bc334da
remove customjfx panel for linux
Siedlerchr 9aab1b6
fix title tab updating issue
Siedlerchr 14921fd
Run a few more things on JavaFX thread to fix saving issues
tobiasdiez 1606b95
Fix size of icons in entry editor toolbar
tobiasdiez f8d9ea6
Properly resize main table even when a vertical scrollbar is shown
tobiasdiez 4998925
Fix height problems for entry editor and preview panel
tobiasdiez 1f6546a
Show column border on hover to easy resize
tobiasdiez 3eee795
revert formatting changes
Siedlerchr 7af1f13
Fix NPE occuring with a not initalized watcher in DefaultFileUpdateMo…
Siedlerchr 2999474
Reenable drag'n'drop support for tabs / libraries (#3688)
tobiasdiez 01bb49e
Show empty group pane if no database is open (#3785)
tobiasdiez fc36140
Allow side pane to be completely hidden (#3784)
tobiasdiez d8914a8
Save order of columns across sessions (#3783)
tobiasdiez 3710be8
Track telemetry of each action (#3789)
tobiasdiez f4f527d
Set main stage for file dialogs (#3790)
tobiasdiez 403986f
Fix delete action and convert confirmation dialog to JavaFX (#3778)
tobiasdiez 84ab697
Extend toolbar with more icons and add tool tips (#3767)
lenhard 2c2e864
Change open last edited dialgo to javafx (#3800)
Siedlerchr e3ea6ae
Remove setting of tooltip manually
Siedlerchr fd98056
Enable travis build for maintable-beta (#3804)
Siedlerchr 9c6bd69
Add group coloring in maintable as replacement for marked entries (#3…
tobiasdiez f6df529
Remove unused import
LinusDietz 21355ab
Dialogstojavafx (#3801)
Siedlerchr 2eee861
Fix Codacy Unused Params, Fields (#3753)
LinusDietz f711c1e
Allow search field to be smaller
tobiasdiez 175719e
Fix some non FX Thread issues
Siedlerchr 0f3320e
embed cleanup dialog in javafx
Siedlerchr dabd175
Update test order -> Execute checkstyle first (#3807)
Siedlerchr 0c833ea
checkstyle argh!
Siedlerchr 313b258
Set resizable for custom dialog with dialog pane
Siedlerchr 8395333
fix cut, copy & paste action from toolbar
Siedlerchr d7ff5a7
run find fulltext dialog in fx thread
Siedlerchr 242170f
Replace swing export dialog in ExportToClipboardAction with fx choice…
Siedlerchr dcbfcbc
Convert swing error dialog in save db action to custom fx dialog
Siedlerchr e7171d6
replace open office install selection dialog with choice dialog
Siedlerchr bead86a
adjust line wrapping on column
Siedlerchr 13f59f0
Fixes #3796: Pretend that we have every translation for every key (#3…
tobiasdiez 44b41da
Merge branch 'maintable-beta' into clear-searchfield-on-esc
tobiasdiez b028c9c
Remove color customization for maintable from preferences (#3808)
tobiasdiez d31f2d8
Remove customjfx (#3779)
Siedlerchr d448548
Show dialog when copy files did not found file (#3826)
Siedlerchr cd4d683
Apply copy linked files dialog fix from master
Siedlerchr 87b13ae
Disable FTP Download on CI
Siedlerchr c449762
update javafxsvg to 1.3.0
Siedlerchr 11dfd2b
update applicationsinsights
Siedlerchr d0964ba
Merge branch 'master' of https://github.com/JabRef/jabref into mainta…
tobiasdiez dca1ee7
Merge changes for renamed actions
tobiasdiez 94f8224
fix inital save error
Siedlerchr affca25
fix some not on fx thread dialogs in preferences
Siedlerchr 4994d7f
Update Eclipse style to intellij style (#3827)
Siedlerchr d99d2d8
Merge pull request #3760 from mohamean/clear-searchfield-on-esc
koppor d60b04d
Merge branch 'master' of https://github.com/JabRef/jabref into mainta…
LinusDietz ba40f57
fix keybinding of entry editor
Siedlerchr 2c2a302
add missing localization
Siedlerchr 41c66f4
Watch main css file for change and reapply automatically (#3847)
tobiasdiez ad8bfd4
Merge remote-tracking branch 'upstream/master' into maintable-beta
Siedlerchr a93ed9b
fix build, remove layout prefs, pass journal abbrev loader and prefs …
Siedlerchr 4b76989
Get rid of journal abbrev loader in linkedFiles (#3862)
Siedlerchr 06d6736
fix failing tests in maintable beta (#3863)
Siedlerchr 3c4a3ef
Make it easier to create FXML dialogs (#3880)
tobiasdiez 57d889f
Don't use null as parameter in DialogService
tobiasdiez b7d215c
Fix import thread problem
tobiasdiez 4f93e1a
Improve tooltip tests
tobiasdiez 8a8c4e4
Merge pull request #3884 from JabRef/readdStatusNotification
tobiasdiez b3072f3
Merge branch 'master' of https://github.com/JabRef/jabref into mainta…
tobiasdiez 495f79f
Load EntryEditor using new ViewLoader
tobiasdiez fca70e2
Move icon stuff to new package gui.icon
tobiasdiez a7639aa
Use JabRef icons in FXML
tobiasdiez f512128
Load all field editors using ViewLoader
tobiasdiez dfaa0d8
Merge pull request #3886 from JabRef/stateButton
Siedlerchr 0bf39f5
Reenable closing of entry preview by pressing Esc (#3883)
tobiasdiez 972cdc8
javafx replacement for file dialog (#3005)
Siedlerchr 6a37f2f
Consistent FX color scheme for JabRef (#3839)
1de3f6c
Enable loading of other theme files
tobiasdiez 588ca02
Fix missing icons and wrong package for custom icons
halirutan afde094
Clean unused imports
halirutan eef429f
Add dark theme
tobiasdiez d39f8e8
Improvements in light theme
tobiasdiez 1a31701
Merge branch 'maintable-beta' into darkTheme
halirutan ef8c2b0
Improve small details
halirutan 0fcfff9
- Switch back to circles as default group icon
tobiasdiez 2bd87a7
Remove all @author comments and empty method/class comments
koppor 0b2db53
Exchange Ignore by Disabled (#3912)
koppor 78b21cf
Merge remote-tracking branch 'origin/maintable-beta' into remove-auth…
koppor 8f979ac
Fix checkstyle
koppor 3ccb902
Merge pull request #3911 from JabRef/remove-author-annotations
koppor 6ddc83b
Fix colors and button effects
halirutan 0eb62f9
fix closing preferences on save
Siedlerchr c47b9a5
fix checkstyle
Siedlerchr 8d61241
Formatter refactoring (#3919)
tobiasdiez d9bccf8
- Menu same color as toolbar
tobiasdiez 439530a
Merge pull request #3891 from JabRef/darkTheme
tobiasdiez abef16b
Merge
tobiasdiez 2987648
Fix style of annotation tab and linked files list
tobiasdiez bb7e755
Fix loading of document viewer
tobiasdiez 2f2abbc
Fix css warning in error console
tobiasdiez 5c57353
Merge branch 'master' of https://github.com/JabRef/jabref into mainta…
tobiasdiez 3e7343c
fix checkstyle
Siedlerchr 10a50b8
delete duplicate class
Siedlerchr bde5c14
Merge branch 'master' of https://github.com/JabRef/jabref into mainta…
tobiasdiez 557783a
Clean changelog
tobiasdiez 520d45e
Replace a few Swing dialogs by JavaFX ones
tobiasdiez ef993bb
Remove unnecessary JavaFX threading
tobiasdiez eba064b
Cleanup BasePanel
tobiasdiez 8dff922
Delete unused and empty class
tobiasdiez fa9f59d
Merge remote-tracking branch 'upstream/master' into maintable-beta
Siedlerchr b26c68e
merge master, fix searchbar
Siedlerchr cf8e6e6
add search performance tweak from master
Siedlerchr 30aa702
Remove unused methods
tobiasdiez 3658479
Bring back special fields in menu
tobiasdiez 862a2cf
Fix close confirmation
tobiasdiez c790103
fix FX thread error on save database dlg
Siedlerchr 1092571
Fixed Url column (#3965)
florian-beetz a6b0996
Merge remote-tracking branch 'upstream/master' into maintable-beta
Siedlerchr cd49127
make jabref compile again
Siedlerchr 706e0fe
fix space
Siedlerchr 5574f40
Merge branch 'master' into maintable-beta
tobiasdiez cb6f541
Merge branch 'master' into maintable-beta
tobiasdiez de4b416
Delete ExportAction.java
tobiasdiez a231827
fix compile erro
Siedlerchr 45a8ae9
fix icon
Siedlerchr 5bdc4ad
change icon to correct name
Siedlerchr 06514bd
Improvements around external file types (#3887)
tobiasdiez b5d0f4d
Merge branch 'master' of https://github.com/JabRef/jabref into mainta…
tobiasdiez dbafabf
Merge branch 'master' into maintable-beta
tobiasdiez f4d180c
Fix build
tobiasdiez a01fb78
Fix concurrent modification exception when adding entries to groups
tobiasdiez 1a7f968
Improve code layout
tobiasdiez 9437ed8
Activate context menu on key press (#4004)
tobiasdiez 147ffca
Fix IEEE preview does not display month (#3983)
DevSiroukane c019582
Merge remote-tracking branch 'upstream/master' into maintable-beta
Siedlerchr 2808d5d
remove look and feel
Siedlerchr fdd3bf8
fix import
Siedlerchr 477771d
set look and feel to windows, aqua or nimbus for swing in case
Siedlerchr 8a8e09a
Add button-icon for union/intersection in the groups side panel (#3954)
Siedlerchr 35b0683
Reimplement tooltips for file and identifier columns (#4011)
florian-beetz 71332c4
Merge remote-tracking branch 'upstream/master' into maintable-beta
Siedlerchr 841305c
Merge branch 'master' of https://github.com/JabRef/jabref into mainta…
tobiasdiez 1c2a5fb
Fix formatting
tobiasdiez fe5a305
Fix formatting
tobiasdiez 4f56b28
Fix case of constants
tobiasdiez 15c0a78
Do not cache bibtex key pattern dialog
tobiasdiez 5b80bcd
No global preferences in cleanup action
tobiasdiez 88cbb40
No global clipboard manager in copy action
tobiasdiez 8f92723
Fix naming
tobiasdiez 768398c
Fix formatting
tobiasdiez 8baece5
Do not cache external file type edit action
tobiasdiez cb41cf8
Do not cache database properties dialog
tobiasdiez c80c5a9
Remove unused class
tobiasdiez 4c9dbc3
Fix formatting
tobiasdiez b11d9cc
Remove unused class
tobiasdiez c4286b8
Fix formatting
tobiasdiez e352f11
Remove commented-out code
tobiasdiez 4606e6e
Preferences as parameter to export command
tobiasdiez a469764
call System.exit after Platform.exit, as the latter one did not shutd…
Siedlerchr 0700051
fix checkstyle
Siedlerchr f95229c
Fix spelling
tobiasdiez bbff88d
Remove unused argument
tobiasdiez 2909b7e
Fix formatting
tobiasdiez 7562172
Fix formatting
tobiasdiez c56ebaf
Convert static methods to instance members (and fix spelling)
tobiasdiez f610b6d
Remove commented-out code
tobiasdiez d6bc06f
Show tooltip for icon-based columns
tobiasdiez 7b0cedf
Remove unused class
tobiasdiez 591992c
Extract dialog service to field
tobiasdiez c62070b
Extract dialog service to field
tobiasdiez 287a21b
Move color related method
tobiasdiez e5fa39a
Inline comment
tobiasdiez 468cce9
Fix initial freeze when downloading files
tobiasdiez 3a0474d
Remove reflection hack to set WM_CLASS (#4034)
florian-beetz c560e00
Use JavaFX-native SVGPath for logo in About dialog (#4035)
florian-beetz 845b384
Fix freeze when importing (#4037)
tobiasdiez 4f1299e
Switch to org.postgresql (#4031)
tobiasdiez 8cbe028
Merge remote-tracking branch 'upstream/master' into maintable-beta
Siedlerchr 390c387
Merge branch 'master' into maintable-beta
stefan-kolb a685e9d
Formatter tests
stefan-kolb ab5ee89
Merge branch 'master' into maintable-beta
stefan-kolb 7dfb404
Remove unused code
tobiasdiez 8b2c662
Fix NPE
tobiasdiez 7f00459
Merge pull request #4060 from JabRef/smallFixes
tobiasdiez 9af2780
Change date parsing warning to debug statement (#4059)
tobiasdiez bb0f728
Fixes #4023: Correctly recognize running remote server
tobiasdiez 20920d9
Additional "Cancel" and "VSCode" icon (#4069)
73eaaad
Merge branch 'maintable-beta' of https://github.com/JabRef/jabref int…
tobiasdiez 7299f89
Fix localization
tobiasdiez 4e85103
Remove special menu localization files
tobiasdiez a872333
Fix import order
tobiasdiez aad5dd1
Fix architecture test
tobiasdiez 51d2292
Fix XMP exporter tests
tobiasdiez 9de8c42
Merge branch 'master' of https://github.com/JabRef/jabref into mainta…
tobiasdiez 1d7a253
Fix build
tobiasdiez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
package org.jabref.gui; | ||
|
||
import javafx.beans.property.DoubleProperty; | ||
import javafx.beans.property.SimpleDoubleProperty; | ||
|
||
import org.jabref.Globals; | ||
import org.jabref.gui.autocompleter.AutoCompletePreferences; | ||
import org.jabref.gui.entryeditor.EntryEditorPreferences; | ||
import org.jabref.gui.keyboard.KeyBindingRepository; | ||
import org.jabref.gui.maintable.MainTablePreferences; | ||
import org.jabref.preferences.JabRefPreferences; | ||
import org.jabref.preferences.PreviewPreferences; | ||
|
||
import org.fxmisc.easybind.EasyBind; | ||
|
||
public class BasePanelPreferences { | ||
private MainTablePreferences tablePreferences; | ||
private AutoCompletePreferences autoCompletePreferences; | ||
private EntryEditorPreferences entryEditorPreferences; | ||
private KeyBindingRepository keyBindings; | ||
private PreviewPreferences previewPreferences; | ||
private DoubleProperty entryEditorDividerPosition = new SimpleDoubleProperty(); | ||
|
||
public BasePanelPreferences(MainTablePreferences tablePreferences, AutoCompletePreferences autoCompletePreferences, EntryEditorPreferences entryEditorPreferences, KeyBindingRepository keyBindings, PreviewPreferences previewPreferences, Double entryEditorDividerPosition) { | ||
this.tablePreferences = tablePreferences; | ||
this.autoCompletePreferences = autoCompletePreferences; | ||
this.entryEditorPreferences = entryEditorPreferences; | ||
this.keyBindings = keyBindings; | ||
this.previewPreferences = previewPreferences; | ||
this.entryEditorDividerPosition.setValue(entryEditorDividerPosition); | ||
} | ||
|
||
public static BasePanelPreferences from(JabRefPreferences preferences) { | ||
BasePanelPreferences basePanelPreferences = new BasePanelPreferences( | ||
MainTablePreferences.from(preferences), | ||
preferences.getAutoCompletePreferences(), | ||
EntryEditorPreferences.from(preferences), | ||
Globals.getKeyPrefs(), | ||
preferences.getPreviewPreferences(), | ||
preferences.getDouble(JabRefPreferences.ENTRY_EDITOR_HEIGHT)); | ||
EasyBind.subscribe(basePanelPreferences.entryEditorDividerPosition, value -> preferences.putDouble(JabRefPreferences.ENTRY_EDITOR_HEIGHT, value.doubleValue())); | ||
return basePanelPreferences; | ||
} | ||
|
||
public double getEntryEditorDividerPosition() { | ||
return entryEditorDividerPosition.get(); | ||
} | ||
|
||
public void setEntryEditorDividerPosition(double entryEditorDividerPosition) { | ||
this.entryEditorDividerPosition.set(entryEditorDividerPosition); | ||
} | ||
|
||
public DoubleProperty entryEditorDividerPositionProperty() { | ||
return entryEditorDividerPosition; | ||
} | ||
|
||
public MainTablePreferences getTablePreferences() { | ||
return tablePreferences; | ||
} | ||
|
||
public AutoCompletePreferences getAutoCompletePreferences() { | ||
return autoCompletePreferences; | ||
} | ||
|
||
public void setAutoCompletePreferences(AutoCompletePreferences autoCompletePreferences) { | ||
this.autoCompletePreferences = autoCompletePreferences; | ||
} | ||
|
||
public EntryEditorPreferences getEntryEditorPreferences() { | ||
return entryEditorPreferences; | ||
} | ||
|
||
public KeyBindingRepository getKeyBindings() { | ||
return keyBindings; | ||
} | ||
|
||
public PreviewPreferences getPreviewPreferences() { | ||
return previewPreferences; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line - is already present on line 17