-
-
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
Dialogstojavafx #3801
Dialogstojavafx #3801
Changes from 1 commit
67c489e
ad502c4
55a985f
bb66b22
ce6837f
86dfdc3
13500fe
d05d253
f4b84d6
71b17c2
469a834
6b1ef6f
cbb1df3
9e7ff57
5b8b745
9a04aa6
4d1b6e7
74391d4
44bceed
cf82ad3
a43a7de
7d4afe0
3dc6068
43d38db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -637,14 +637,11 @@ private boolean checkThatEntriesHaveKeys(List<BibEntry> entries) { | |
} | ||
|
||
// Ask if keys should be generated | ||
String[] options = {Localization.lang("Generate keys"), Localization.lang("Cancel")}; | ||
|
||
boolean citePressed = frame.getDialogService().showConfirmationDialogAndWait(Localization.lang("Cite"), | ||
Localization.lang("Cannot cite entries without BibTeX keys. Generate keys now?"), | ||
Localization.lang("Generate keys"), | ||
Localization.lang("Cancel")); | ||
|
||
|
||
BasePanel panel = frame.getCurrentBasePanel(); | ||
if (citePressed && (panel != null)) { | ||
// Generate keys | ||
|
@@ -672,41 +669,30 @@ private boolean checkThatEntriesHaveKeys(List<BibEntry> entries) { | |
private void showConnectionLostErrorMessage() { | ||
frame.getDialogService().showErrorDialogAndWait(Localization.lang("Connection lost"), | ||
Localization.lang("Connection to OpenOffice/LibreOffice has been lost. " | ||
+ "Please make sure OpenOffice/LibreOffice is running, and try to reconnect.")); | ||
+ "Please make sure OpenOffice/LibreOffice is running, and try to reconnect.")); | ||
|
||
} | ||
|
||
private void reportUndefinedParagraphFormat(UndefinedParagraphFormatException ex) { | ||
//TODO: Javafx does not support html as far as I know | ||
JOptionPane | ||
.showMessageDialog( | ||
null, "<html>" | ||
+ Localization.lang( | ||
"Your style file specifies the paragraph format '%0', " | ||
+ "which is undefined in your current OpenOffice/LibreOffice document.", | ||
ex.getFormatName()) | ||
+ "<br>" | ||
+ Localization | ||
.lang("The paragraph format is controlled by the property 'ReferenceParagraphFormat' or 'ReferenceHeaderParagraphFormat' in the style file.") | ||
+ "</html>", | ||
"", JOptionPane.ERROR_MESSAGE); | ||
|
||
frame.getDialogService().showErrorDialogAndWait(Localization.lang("Undefined paragraph format"), | ||
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. remove todo? 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. You were a second too early ;) |
||
Localization.lang("Your style file specifies the paragraph format '%0' which is undefined in your current OpenOffice/LibreOffice document.", | ||
ex.getFormatName()) + "\n" + | ||
Localization.lang("The paragraph format is controlled by the property 'ReferenceParagraphFormat' or 'ReferenceHeaderParagraphFormat' in the style file.")); | ||
|
||
} | ||
|
||
private void reportUndefinedCharacterFormat(UndefinedCharacterFormatException ex) { | ||
//TODO: Javafx does not support html as far as I know | ||
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. see above |
||
|
||
JOptionPane | ||
.showMessageDialog( | ||
null, "<html>" | ||
+ Localization.lang( | ||
"Your style file specifies the character format '%0', " | ||
+ "which is undefined in your current OpenOffice/LibreOffice document.", | ||
ex.getFormatName()) | ||
+ "<br>" | ||
+ Localization | ||
.lang("The character format is controlled by the citation property 'CitationCharacterFormat' in the style file.") | ||
+ "</html>", | ||
"", JOptionPane.ERROR_MESSAGE); | ||
frame.getDialogService().showErrorDialogAndWait(Localization.lang("Undefined character format"), | ||
Localization.lang( | ||
"Your style file specifies the character format '%0', which is undefined in your current OpenOffice/LibreOffice document.", | ||
ex.getFormatName()) + "\n" | ||
+ Localization.lang("The character format is controlled by the citation property 'CitationCharacterFormat' in the style file.") | ||
|
||
); | ||
} | ||
|
||
private void showSettingsPopup() { | ||
|
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.
Thats right, but the dialog does not seem to actually need html (the only tag is for the newline, right?)