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

Changed fixed position of special columns. #3354 #3416

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/main/java/org/jabref/gui/maintable/MainTableFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,6 @@ public void updateTableFormat() {
tableColumns.add(builder.createFileIconColumn(desiredColumn));
}
}

// Add 'normal' bibtex fields as configured in the preferences
// Read table columns from prefs:
List<String> colSettings = Globals.prefs.getStringList(JabRefPreferences.COLUMN_NAMES);

for (String columnName : colSettings) {
// stored column name will be used as columnName
// There might be more than one field to display, e.g., "author/editor" or "date/year" - so split
// at MainTableFormat.COL_DEFINITION_FIELD_SEPARATOR
String[] fields = columnName.split(FieldName.FIELD_SEPARATOR);
tableColumns.add(new MainTableColumn(columnName, Arrays.asList(fields), database));
}

// Add the "special" icon columns (e.g., ranking, file, ...) that are enabled in preferences.
if (Globals.prefs.getBoolean(JabRefPreferences.SPECIALFIELDSENABLED)) {
if (Globals.prefs.getBoolean(JabRefPreferences.SHOWCOLUMN_RANKING)) {
Expand All @@ -147,6 +134,19 @@ public void updateTableFormat() {
tableColumns.add(builder.buildReadStatusColumn());
}
}
// Add 'normal' bibtex fields as configured in the preferences
// Read table columns from prefs:
List<String> colSettings = Globals.prefs.getStringList(JabRefPreferences.COLUMN_NAMES);

for (String columnName : colSettings) {
// stored column name will be used as columnName
// There might be more than one field to display, e.g., "author/editor" or "date/year" - so split
// at MainTableFormat.COL_DEFINITION_FIELD_SEPARATOR
String[] fields = columnName.split(FieldName.FIELD_SEPARATOR);
tableColumns.add(new MainTableColumn(columnName, Arrays.asList(fields), database));
}



}

Expand Down