-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6518 from JabRef/refactor_tableprefs
Refactor main table preferences
- Loading branch information
Showing
17 changed files
with
902 additions
and
751 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
30 changes: 30 additions & 0 deletions
30
src/main/java/org/jabref/gui/maintable/MainTableNameFormatPreferences.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,30 @@ | ||
package org.jabref.gui.maintable; | ||
|
||
public class MainTableNameFormatPreferences { | ||
|
||
public enum DisplayStyle { | ||
NATBIB, AS_IS, FIRSTNAME_LASTNAME, LASTNAME_FIRSTNAME | ||
} | ||
|
||
public enum AbbreviationStyle { | ||
NONE, LASTNAME_ONLY, FULL | ||
} | ||
|
||
private final DisplayStyle displayStyle; | ||
private final AbbreviationStyle abbreviationStyle; | ||
|
||
public MainTableNameFormatPreferences(DisplayStyle displayStyle, | ||
AbbreviationStyle abbreviationStyle) { | ||
|
||
this.displayStyle = displayStyle; | ||
this.abbreviationStyle = abbreviationStyle; | ||
} | ||
|
||
public DisplayStyle getDisplayStyle() { | ||
return displayStyle; | ||
} | ||
|
||
public AbbreviationStyle getAbbreviationStyle() { | ||
return abbreviationStyle; | ||
} | ||
} |
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
Oops, something went wrong.