-
-
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
Rename the Review Tab into Comments Tab #3658
Merged
Merged
Changes from 27 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
289c2d2
Rename the Review Tab into Comments Tab
LinusDietz 351b1db
Remove Localization Key for Review
LinusDietz ac341e4
Merge branch 'master' into comment-tab
LinusDietz 07a8965
Use Comment field in the Comment tab
LinusDietz 6a75c6a
Migration for the Review field
LinusDietz af9022a
Merge remote-tracking branch 'origin/comment-tab' into comment-tab
LinusDietz afe5476
Remove Comment Field from General Tab
LinusDietz 995b965
Tests
LinusDietz 056ef9d
Simplify tests
LinusDietz 9d9c5a6
Fix Codacy
LinusDietz 4a6886e
Package refactoring, streamline naming
LinusDietz a5a2994
Also move tests
LinusDietz 37a247c
Merge branch 'master' of https://github.com/JabRef/jabref into commen…
LinusDietz 1e0d56e
Add Confirmation Dialog for Merging Fields
LinusDietz e949025
Localize Tests
LinusDietz c93b490
Fix tests
LinusDietz e405f67
Fix Codacy
LinusDietz 6cca4ab
fixed issue 298
grotepfn b7ca150
updated Changes
grotepfn 38750e8
Update CHANGELOG.md
grotepfn 2d2bb7e
User decides now once for all migrations.
LinusDietz dfeda8d
fix localization
LinusDietz 4828955
Merge pull request #3726 from grotepfn/patch-3
lenhard 5962710
Remove 'no' button
LinusDietz 4c1905d
Merge branch 'master' of https://github.com/JabRef/jabref into commen…
LinusDietz 38e6139
Merge branch 'comment-tab' of https://github.com/JabRef/jabref into c…
LinusDietz b246cfe
Mark Database as changed after the LoadDatabaseMigration
LinusDietz 303ed4d
Getters and Setters
LinusDietz 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
2 changes: 1 addition & 1 deletion
2
.../autosaveandbackup/AutosaveUIManager.java → ...jabref/gui/dialogs/AutosaveUIManager.java
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
2 changes: 1 addition & 1 deletion
2
...ui/autosaveandbackup/BackupUIManager.java → ...g/jabref/gui/dialogs/BackupUIManager.java
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.jabref.gui.autosaveandbackup; | ||
package org.jabref.gui.dialogs; | ||
|
||
import java.nio.file.Path; | ||
|
||
|
31 changes: 31 additions & 0 deletions
31
src/main/java/org/jabref/gui/dialogs/MergeReviewIntoCommentUIManager.java
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.jabref.gui.dialogs; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
import java.util.stream.Collectors; | ||
|
||
import javax.swing.JOptionPane; | ||
|
||
import org.jabref.logic.l10n.Localization; | ||
import org.jabref.model.entry.BibEntry; | ||
|
||
public class MergeReviewIntoCommentUIManager { | ||
|
||
public boolean askUserForMerge(List<BibEntry> conflicts) { | ||
List<String> bibKeys = conflicts.stream() | ||
.map(BibEntry::getCiteKeyOptional) | ||
.filter(Optional::isPresent) | ||
.map(Optional::get) | ||
.collect(Collectors.toList()); | ||
|
||
int answer = JOptionPane.showConfirmDialog( | ||
null, | ||
String.join(",\n", bibKeys) + " " + | ||
Localization.lang("has/have both a 'Comment' and a 'Review' field.") + "\n" + | ||
Localization.lang("Since the 'Review' field was deprecated in JabRef 4.2, these two fields are about to be merged into the 'Comment' field.") + "\n" + | ||
Localization.lang("The conflicting fields of these entries will be merged into the 'Comment' field."), | ||
Localization.lang("Review Field Migration"), JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE); | ||
|
||
return 0 == answer; | ||
} | ||
} |
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
7 changes: 0 additions & 7 deletions
7
src/main/java/org/jabref/logic/importer/util/PostOpenAction.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
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.
Sorry, but there is no way I am going to sign off a public instance variable such as this. Please follow the Java Conventions and use a getter and a setter.
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.
Yeah I though somebody might complain... I just find it so stupid... The `protection' is just the same with getters and setters...
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 know a new book that's about to come out that argues for keeping to conventions when programming Java ;-)
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.
The "protection" is not the same. Getters and setters encapsulate the variable and might perform (in future) addtional operations on them. That's what I liked about the automatic properties of C#. Automatically generated getters and setters.