-
-
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,9 +115,10 @@ public ConnectToSharedDatabaseDialog(JabRefFrame frame) { | |
public void openSharedDatabase() { | ||
|
||
if (isSharedDatabaseAlreadyPresent()) { | ||
JOptionPane.showMessageDialog(ConnectToSharedDatabaseDialog.this, | ||
Localization.lang("You are already connected to a database using entered connection details."), | ||
Localization.lang("Warning"), JOptionPane.WARNING_MESSAGE); | ||
|
||
frame.getDialogService().showWarningDialogAndWait(Localization.lang("Warning"), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use a better title? |
||
Localization.lang("You are already connected to a database using entered connection details.")); | ||
|
||
return; | ||
} | ||
|
||
|
@@ -126,10 +127,13 @@ public void openSharedDatabase() { | |
Path localFilePath = Paths.get(fileLocationField.getText()); | ||
|
||
if (Files.exists(localFilePath) && !Files.isDirectory(localFilePath)) { | ||
int answer = JOptionPane.showConfirmDialog(this, | ||
|
||
boolean overwriteFilePressed = frame.getDialogService().showConfirmationDialogAndWait(Localization.lang("Existing file"), | ||
Localization.lang("'%0' exists. Overwrite file?", localFilePath.getFileName().toString()), | ||
Localization.lang("Existing file"), JOptionPane.YES_NO_OPTION); | ||
if (answer == JOptionPane.NO_OPTION) { | ||
Localization.lang("Overwrite file"), | ||
Localization.lang("Cancel")); | ||
|
||
if (!overwriteFilePressed) { | ||
fileLocationField.requestFocus(); | ||
return; | ||
} | ||
|
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.
This seems to be another inconsistency between eclipse and intellj style
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 will investigate that