-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Dialogstojavafx #3801
Merged
Merged
Dialogstojavafx #3801
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
67c489e
convert dialogs to javafx
Siedlerchr ad502c4
convert open office and other preferences
Siedlerchr 55a985f
Convert entryTypeList and entry customization and shared database
Siedlerchr bb66b22
And convert some more
Siedlerchr ce6837f
Merge remote-tracking branch 'upstream/maintable-beta' into dialogsto…
Siedlerchr 86dfdc3
Pass dialogService instead of frame
Siedlerchr 13500fe
entry types list
Siedlerchr d05d253
create choice dialog
Siedlerchr f4b84d6
ADd method for returning list in Encodings
Siedlerchr 71b17c2
Convert some more confirmation dialogs
Siedlerchr 469a834
convert some more dialogs
Siedlerchr 6b1ef6f
Merge branch 'maintable-beta' into dialogstojavafx
Siedlerchr cbb1df3
fix checkstyle and add missing lang keys
Siedlerchr 9e7ff57
fix dialog conditions
Siedlerchr 5b8b745
Merge remote-tracking branch 'upstream/maintable-beta' into dialogsto…
Siedlerchr 9a04aa6
add better title for share db dialog
Siedlerchr 4d1b6e7
Add dialogservice to push to apps
Siedlerchr 74391d4
add new keys
Siedlerchr 44bceed
fix dialog service in push
Siedlerchr cf82ad3
checkstyle
Siedlerchr a43a7de
use dialogservice as local variable
Siedlerchr 7d4afe0
pass Dialog service to push dialogs as ctor arg
Siedlerchr 3dc6068
Merge remote-tracking branch 'upstream/maintable-beta' into dialogsto…
Siedlerchr 43d38db
checkstyle
Siedlerchr 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
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
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
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.
The
dialogService
makes more sense as a constructor argument, I think. Probably push it even toAbstractPushToApplication
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.
I thought so, too, but the concrete subclass of PushToEntries (operation) is just passed as constructur argument as a dependency, so it is not possible
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.
Sorry, I don't understand what you mean. The push to application action of course only gets the
PushToApplicaiton
instance without knowing which concrete subclass it is. But this is not a problem as far as I can see since upon initialization each subclass would get aDialogService
as a constructor argument.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.
The problem is:
PushToApplicationAction
already gets an instance of the concrete push operation and only callspushEntries
.And these push-Operations are defined and instantiated here. I can't just pass the DialogService as Constructor arg.
The only thing I could do is to create an additional setter for the Dialog Service
jabref/src/main/java/org/jabref/gui/push/PushToApplications.java
Lines 16 to 20 in fd98056
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.
Why can't you pass the dialog service as a constructor argument to
PushToApplications
? It seems the only place where this class is initiated isjabref/src/main/java/org/jabref/gui/JabRefFrame.java
Line 580 in fd98056
where you have a dialog service at your disposal.
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.
done