-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save unlinked local files dialog prefs (#11493)
* Added saving of selected options for unlinked local files dialog (#11493) * Update CHANGELOG.md * Removed not needed checkbox from dialog, resolved comments --------- Co-authored-by: Oliver Kopp <[email protected]>
- Loading branch information
1 parent
7de6d59
commit 410db8a
Showing
8 changed files
with
144 additions
and
6 deletions.
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
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
59 changes: 59 additions & 0 deletions
59
src/main/java/org/jabref/preferences/UnlinkedFilesDialogPreferences.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,59 @@ | ||
package org.jabref.preferences; | ||
|
||
import javafx.beans.property.ObjectProperty; | ||
import javafx.beans.property.SimpleObjectProperty; | ||
import javafx.beans.property.SimpleStringProperty; | ||
import javafx.beans.property.StringProperty; | ||
|
||
import org.jabref.gui.externalfiles.DateRange; | ||
import org.jabref.gui.externalfiles.ExternalFileSorter; | ||
|
||
public class UnlinkedFilesDialogPreferences { | ||
private final StringProperty unlinkedFilesSelectedExtension; | ||
private final ObjectProperty<DateRange> unlinkedFilesSelectedDateRange; | ||
private final ObjectProperty<ExternalFileSorter> unlinkedFilesSelectedSort; | ||
|
||
public UnlinkedFilesDialogPreferences(String unlinkedFilesSelectedExtension, | ||
DateRange unlinkedFilesSelectedDateRange, | ||
ExternalFileSorter unlinkedFilesSelectedSort) { | ||
this.unlinkedFilesSelectedExtension = new SimpleStringProperty(unlinkedFilesSelectedExtension); | ||
this.unlinkedFilesSelectedDateRange = new SimpleObjectProperty<>(unlinkedFilesSelectedDateRange); | ||
this.unlinkedFilesSelectedSort = new SimpleObjectProperty<>(unlinkedFilesSelectedSort); | ||
} | ||
|
||
public String getUnlinkedFilesSelectedExtension() { | ||
return unlinkedFilesSelectedExtension.get(); | ||
} | ||
|
||
public StringProperty unlinkedFilesSelectedExtensionProperty() { | ||
return unlinkedFilesSelectedExtension; | ||
} | ||
|
||
public void setUnlinkedFilesSelectedExtension(String unlinkedFilesSelectedExtension) { | ||
this.unlinkedFilesSelectedExtension.set(unlinkedFilesSelectedExtension); | ||
} | ||
|
||
public DateRange getUnlinkedFilesSelectedDateRange() { | ||
return unlinkedFilesSelectedDateRange.get(); | ||
} | ||
|
||
public ObjectProperty<DateRange> unlinkedFilesSelectedDateRangeProperty() { | ||
return unlinkedFilesSelectedDateRange; | ||
} | ||
|
||
public void setUnlinkedFilesSelectedDateRange(DateRange unlinkedFilesSelectedDateRange) { | ||
this.unlinkedFilesSelectedDateRange.set(unlinkedFilesSelectedDateRange); | ||
} | ||
|
||
public ExternalFileSorter getUnlinkedFilesSelectedSort() { | ||
return unlinkedFilesSelectedSort.get(); | ||
} | ||
|
||
public ObjectProperty<ExternalFileSorter> unlinkedFilesSelectedSortProperty() { | ||
return unlinkedFilesSelectedSort; | ||
} | ||
|
||
public void setUnlinkedFilesSelectedSort(ExternalFileSorter unlinkedFilesSelectedSort) { | ||
this.unlinkedFilesSelectedSort.set(unlinkedFilesSelectedSort); | ||
} | ||
} |