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

I have implemented 2 features requested in Ticket #841. #7

Merged
merged 1 commit into from
Mar 23, 2014

Conversation

noravanq
Copy link
Contributor

The user can now specify an arbitrary number of file-link columns in te "Entry table columns" preferences tab, to be added to the main table. The user can any file types specified in the list of External File Types. The extra columns work exactly like the original file-link column.

For each file-link column whenever there are multiple files, the letter "m" is displayed at the bottom right corner of the icon.

Committer: noravanq

On branch master
Changes to be committed:
(use "git reset HEAD ..." to unstage)

modified:   src/main/java/net/sf/jabref/GUIGlobals.java
modified:   src/main/java/net/sf/jabref/JabRefPreferences.java
modified:   src/main/java/net/sf/jabref/TableColumnsTab.java
modified:   src/main/java/net/sf/jabref/gui/MainTableFormat.java
modified:   src/main/java/net/sf/jabref/gui/MainTableSelectionListener.java
modified:   src/main/java/net/sf/jabref/gui/PreventDraggingJTableHeader.java

    The user can now specify an arbitrary number of file-link columns in te "Entry table columns" preferences tab, to be added to the main table. The user can any file types specified in the list of External File Types. The extra columns work exactly like the original file-link column.

    For each file-link column whenever there are multiple files, the letter "m" is displayed at the bottom right corner of the icon.

 Committer: noravanq

 On branch master
 Changes to be committed:
   (use "git reset HEAD <file>..." to unstage)

	modified:   src/main/java/net/sf/jabref/GUIGlobals.java
	modified:   src/main/java/net/sf/jabref/JabRefPreferences.java
	modified:   src/main/java/net/sf/jabref/TableColumnsTab.java
	modified:   src/main/java/net/sf/jabref/gui/MainTableFormat.java
	modified:   src/main/java/net/sf/jabref/gui/MainTableSelectionListener.java
	modified:   src/main/java/net/sf/jabref/gui/PreventDraggingJTableHeader.java
koppor added a commit that referenced this pull request Mar 23, 2014
Support for multiple file columns as described in sf.net feature request #841.
@koppor koppor merged commit 124e531 into JabRef:master Mar 23, 2014
miguel-real-miei added a commit to the-Kob/SE2122_55677_56773__56971_57066_58625 that referenced this pull request Nov 22, 2021
These pertain to tasks "Code Smell JabRef#7", "Code Smell JabRef#8" and "Code Smell JabRef#9".
Pending review by another team member.
miguel-real-miei added a commit to the-Kob/SE2122_55677_56773__56971_57066_58625 that referenced this pull request Nov 23, 2021
After review a suggested solution was altered. This document pertains to tasks "Code Smell JabRef#7", "Code Smell JabRef#8" and "Code Smell JabRef#9".
miguel-real-miei referenced this pull request in the-Kob/SE2122_55677_56773__56971_57066_58625 Dec 4, 2021
github-merge-queue bot pushed a commit that referenced this pull request Mar 6, 2024
* Adds feature CleanupJob for removing non-existent files (#2)

* feat: RemoveLinksToNotExistentFiles.java

* feat: added option to cleanup entries

* feat: improved cleanup entry dialogue

* Test: implements test for linked files which exist

Implementation of a test which calls the cleanup functionality of
RemoveLinksToNotExistentFiles with a entry that is linked to an existing
file. The test makes sure that no changes are made since the linked
file exists.

* Refactor: refactored test to match the standard of the project

Removed the JavaDoc comment from the test, since other tests in the
project don't have JavaDoc:s. Also removed test from the name of the
test function, as it seems that the standard way of naming tests
is to not have test in the testfunctions name.

* Refactor: removed system.out.print()

Removed an print from the tests.

* fix: non english character deleted

* Docs: Added information about changes

Added information about the changes made for solving issue#10929
to the CHANGES.md file.

---------



* Fix: Removes unused imports and solves other errors

Removes unused imports and solves the error of language keys
that were not in the english laguage file.

* Fix: Removes empty line and solves other issues

Removes an empty line where 2 empty lines appear in after each
other. Also adds brackets to URL and removes an key which is
not in the english language file and was missed in the last commit.

* Docs: Removes technicality from changelog

Removes technical details for the change made in changelog and also
follows the suggestion for removing the space and brackets between
the link and the issue.

* test: enhanced RemoveLinksToNotExistentFilesTest (#3)

* test: enhanced RemoveLinksToNotExistentFilesTest

* test: add real content

* test: change structure

* test: added expectedChanges

* test: added a third test to RemoveLinksToNotExistentFilesTest

* refactor: removed unnecessary toString

* style: removed a whitespace

* refactor: checkstyle formatting.

formatted files according to checkstyle plugin.

---------



* Resolve request changes (#4)

* test: enhanced RemoveLinksToNotExistentFilesTest

* test: add real content

* test: change structure

* test: added expectedChanges

* test: added a third test to RemoveLinksToNotExistentFilesTest

* refactor: removed unnecessary toString

* style: removed a whitespace

* refactor: checkstyle formatting.

formatted files according to checkstyle plugin.

* refactor: replaced .get(0) with .getFirst() for first accessing element of List.

Changed was required from ./gradlew rewriteDryRun

---------



* Resolve more request changes and warnings (#5)

* Reverse the condition and the content in RemoveLinksToNotExistentFiles

Resolves comment
 "Reverse the condition and the content.

Reason: You have BOTH (true and false) cases covered. The true case should normally come first."

* Fix: Store bibFolder.resolve("test.bib") in a variable

* Refactor: Rename variable fileFolder to originalFileFolder and remove comment.

* Refactor: Rename defaultFileFolder to newFileFolder

* Refactor: Fix indentation in RemoveLinksToNotExistentFilesTest

* Refactor: Replaced Arrays.asList() with List.of()

* Refactor: Replaced Arrays.asList() with List.of()

* Refactor: Change to use java.nio for file deletion.

* Refactor: Move comment to line above.

* Refactor: Added "PDF" as third argument to LinkedFile for OnlineLink files

* Refactor: Removed unused variables in RemoveLinksToNotExistentFiles

* Refactor: Throw IOException in RemoveLinksToNotExistentFilesTest functions

* Refactor: Tests assert using List.of() in RemoveLinksToNotExistentFilesTest

* Refactor: Corrected Arguments for LinkedFile in RemoveLinksToNotExistentFilesTest

* Refactor: Class fields into local variables

This refactor fixed 3 warnings.

* docs: updated docs to remove merge conflict

---------

Co-authored-by: karlsb <[email protected]>
Co-authored-by: burcukilic <[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