Skip to content

Implement resetting for one preference #14400

@koppor

Description

@koppor

For resetting preferences, the handling of the preference objects needs to be changed.

This issue describes the steps to do.

Note

We created sub issues for each prefernce

PR showing the changes for WorkspacePreferences: #13894

In JabRefGui/CliPreferences remove (but keep the values in mind)
grafik

In XXXPreferences class

  • Add private default constructor (use the values from the step before)
grafik
  • Add getDefault method
grafik
  • Add setAll method
grafik

In JabRefGui/CliPreferences class

  • Add fromBackingStore method (Note that the screenshot has lowLevelApi, but we want BackingStore
grafik
  • Modify getXXXPreferences method
grafik
  • Add to clear / importPreferences method
grafik
  • Internal note As soon as this issue is solved, we need to create sub issues for JabRefCliPreferences.

Pick one preference from

private EntryEditorPreferences entryEditorPreferences;
private MergeDialogPreferences mergeDialogPreferences;
private AutoCompletePreferences autoCompletePreferences;
private CoreGuiPreferences coreGuiPreferences;
private WorkspacePreferences workspacePreferences;
private UnlinkedFilesDialogPreferences unlinkedFilesDialogPreferences;
private ExternalApplicationsPreferences externalApplicationsPreferences;
private SidePanePreferences sidePanePreferences;
private GroupsPreferences groupsPreferences;
private SpecialFieldsPreferences specialFieldsPreferences;
private PreviewPreferences previewPreferences;
private PushToApplicationPreferences pushToApplicationPreferences;
private NameDisplayPreferences nameDisplayPreferences;
private MainTablePreferences mainTablePreferences;
private ColumnPreferences mainTableColumnPreferences;
private ColumnPreferences searchDialogColumnPreferences;
private KeyBindingRepository keyBindingRepository;
private CopyToPreferences copyToPreferences;
private NewEntryPreferences newEntryPreferences;
private DonationPreferences donationPreferences;
and handle it.

Sub-issues

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions