-
-
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
Integrated key word handling in BibtexEntry #375
Conversation
325bfe7
to
beb8e96
Compare
sb.append(", "); | ||
} | ||
sb.delete(sb.length() - 2, sb.length()); | ||
newValue = sb.toString(); |
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.
String.join(", ", keywords) should do the same as these lines.
9de5da8
to
9633a87
Compare
* | ||
* @param keywords Keywords to add | ||
*/ | ||
public void addKeywords(ArrayList<String> keywords) { |
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.
Use List (the abstraction) instead
I think this is valuable. If you have time and improve it a little bit plus rebase on master, I think we can merge this in. |
I'll do that. Maybe tonight, but cannot promise anything. There are indeed only minor things. I'll wait with the KeyWords class, but I think it makes sense in the long term to have a separate class to deal with this. There may also eventually be something similar for linking entries, but I will need to think more carefully about that... |
…ringUtil to correct file.
…responding tests)
9633a87
to
467491c
Compare
Might be good to go now. |
Integrated key word handling in BibtexEntry
* task: first cut of Scite tab and associated preference * task: comments and minor refactoring * task: Updated readme.md for issue #375 * fix: Import ordering and markdown space * fix: imports and whitespace (checkstyle) * fix: imports and whitespace (checkstyle) * fix: imports and whitespace (checkstyle) * fix: Removed unnecessary parentheses (OpenRewrite) * fix: Unit tests and localisation keys * fix: Removed unnecessary heading in CHANGELOG.md * fix: Made SciteTallyDTO a record type and moved it to new file * fix: Made the scite.ai base url a constant * fix: Exception handling now catches most specific exceptions, and rethrows them as FetcherException * fix: style for scite message box * fix: Catch specific exception and display error message rather than throwing a generic unchecked exception * fix: Localization for SciteTab error messages, and "Scite" name is no longer localized * some small refactoring * checkstyle and rename * Update CHANGELOG.md * Update EntryEditorTab.java * move and checkstyle * fix l10n and rename --------- Co-authored-by: Siedlerchr <[email protected]> Co-authored-by: Carl Christian Snethlage <[email protected]>
Moved the key word handling to BibtexEntry.
Added new methods addKeyword and addKeywords to simply add one or more keywords. Will be useful when merging key words later on.