Skip to content
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

Merged
merged 6 commits into from
Nov 27, 2015

Conversation

oscargus
Copy link
Contributor

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.

sb.append(", ");
}
sb.delete(sb.length() - 2, sb.length());
newValue = sb.toString();
Copy link
Contributor

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.

@oscargus oscargus force-pushed the keywordsinentry branch 3 times, most recently from 9de5da8 to 9633a87 Compare November 21, 2015 14:03
*
* @param keywords Keywords to add
*/
public void addKeywords(ArrayList<String> keywords) {
Copy link
Contributor

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

@simonharrer
Copy link
Contributor

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.

@oscargus
Copy link
Contributor Author

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...

@oscargus
Copy link
Contributor Author

Might be good to go now.

simonharrer added a commit that referenced this pull request Nov 27, 2015
Integrated key word handling in BibtexEntry
@simonharrer simonharrer merged commit 36a350c into JabRef:master Nov 27, 2015
@oscargus oscargus deleted the keywordsinentry branch November 27, 2015 09:28
u7500248 added a commit to u7500248/jabref that referenced this pull request Nov 3, 2023
github-merge-queue bot pushed a commit that referenced this pull request Nov 10, 2023
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants