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

Cleanup preferences #8036

Merged
merged 5 commits into from
Aug 31, 2021
Merged

Cleanup preferences #8036

merged 5 commits into from
Aug 31, 2021

Conversation

calixtus
Copy link
Member

@calixtus calixtus commented Aug 31, 2021

Extracted some calls to Globals.prefs and Globals.stateManager.
Step by step.

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked documentation: Is the information available and up to date? If not created an issue at https://github.com/JabRef/user-documentation/issues or, even better, submitted a pull request to the documentation repository.

@calixtus calixtus marked this pull request as ready for review August 31, 2021 09:49
@calixtus calixtus changed the title [WIP] Cleanup preferences Cleanup preferences Aug 31, 2021
Copy link
Member

@koppor koppor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good preparation for using dependency injection

this.taskExecutor = taskExecutor;
this.preferencesService = preferencesService;
this.importFormatPreferneces = preferencesService.getImportFormatPreferences();
this.stateManager = stateManager;
this.importFormatPreferences = preferencesService.getImportFormatPreferences();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why keep both preferencesService and the smaller preferences objects?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a temporary placeholder on the way to use only the small objects.

@Siedlerchr Siedlerchr merged commit df83c9d into main Aug 31, 2021
@Siedlerchr Siedlerchr deleted the extract-globals-prefs branch August 31, 2021 11:50
Copy link
Contributor

@btut btut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Siedlerchr added a commit that referenced this pull request Aug 31, 2021
* upstream/main:
  Switch to archive.org for site.icu-project.org
  Add Java Profiler
  Fix output when closing JabRef while indexing (#8043)
  Remove explicit XMP import for PDFs (#8040)
  Fix crosses
  Stop indexing on cancel (#8039)
  Write embedded bib in addition to XMP metadata (#8037)
  Cleanup preferences (#8036)
  Fix Search dark mode theme (#8028)
  Allow the search to return multiple entries. (#8038)
  Refactored GroupTree.fxml to plain java (#8035)
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.

4 participants