Skip to content

Commit

Permalink
File was added to wrong directory
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed Jan 29, 2016
1 parent 1550252 commit 2f553e6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/net/sf/jabref/Defaults.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package net.sf.jabref;

import net.sf.jabref.model.database.BibDatabaseMode;

public class Defaults {

public final BibDatabaseMode mode;

public Defaults() {
this.mode = BibDatabaseMode.BIBTEX;
}

public Defaults(BibDatabaseMode mode) {
this.mode = mode;
}

This comment has been minimized.

Copy link
@tobiasdiez

tobiasdiez Jan 29, 2016

Member

I would also create a static method fromPreferences(Preferences) which encapsulates the code BibDatabaseMode.fromPreference(Globals.prefs.getBoolean(JabRefPreferences.BIBLATEX_MODE))
(end inline BibDatabaseMode.fromPreference in this new method)

This comment has been minimized.

Copy link
@simonharrer

simonharrer Jan 30, 2016

Author Contributor

Defaults should go into the model package, and then it should not know the preferences. I have not found a good place where to put this code fragment yet.

}

0 comments on commit 2f553e6

Please sign in to comment.