-
-
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
Refactor EntryEditor & EntryEditorTab #2199
Conversation
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.
Please fix codacy. Beside the minor comments it's good from my side.
@@ -328,7 +327,8 @@ private void addSourceTab() { | |||
srcPanel.setName(panelName); | |||
tabbed.addTab(panelName, IconTheme.JabRefIcon.SOURCE.getSmallIcon(), srcPanel, toolTip); | |||
tabs.add(srcPanel); | |||
sourceIndex = tabs.size() - 1; // Set the sourceIndex variable. | |||
// Set the sourceIndex variable |
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 think the comment can be deleted.
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
/** | ||
* Corrected to fix [ 1594169 ] Entry editor: navigation between panels | ||
*/ | ||
// Corrected to fix [ 1594169 ] Entry editor: navigation between panels |
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 can be also deleted I think. Or you could replace it to not point to the bug.
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
In the prompt Firstname Lastname... "others" is not translated. My proposal is to replace it by "et al.". This is international, so no translation needed. For the |
addOptionalTab(type); | ||
} else { | ||
displayedOptionalFields.addAll(type.getPrimaryOptionalFields()); |
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 is this removed here? If I remember this right this was needed to distinguish optional fields from fields that are displayed in the other fields tab?
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.
Items of the list are never used, only added to it (displayedOptionalFields
was only used in line 234, 240, 244, and 245; or am I missing something?)
|
Changed the prompt for |
From my side it looks ok now. I misinterpreted the author... prompt, because I didn't know the function of |
Just one small addition. I found following person name fields for BibLaTeX:
I assume that the suggestion syntax |
Now I reuse the already existing lists. |
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.
LGTM
This PR breaks Ctrl + A. See #2615 |
I refactored many comments (some of them even referred to variables which do not exist anymore).
I removed some unused Methods, replaced some code with already existing methods and refactored a switch-case.