-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into sharelatex
* upstream/master: update mockito-core from 2.10.0 -> 2.11.0 (#3338) Remove underscore in Localized messages (#3336) Localisation: French: new entries translated (#3337) Refactoring: Lazy init of all editor tabs (#3333)
- Loading branch information
Showing
26 changed files
with
258 additions
and
317 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
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
15 changes: 11 additions & 4 deletions
15
src/main/java/org/jabref/gui/entryeditor/DeprecatedFieldsTab.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 |
---|---|---|
@@ -1,20 +1,27 @@ | ||
package org.jabref.gui.entryeditor; | ||
|
||
import java.util.List; | ||
|
||
import javafx.scene.control.Tooltip; | ||
|
||
import org.jabref.gui.BasePanel; | ||
import org.jabref.gui.IconTheme; | ||
import org.jabref.gui.JabRefFrame; | ||
import org.jabref.gui.autocompleter.SuggestionProviders; | ||
import org.jabref.logic.l10n.Localization; | ||
import org.jabref.model.database.BibDatabaseContext; | ||
import org.jabref.model.entry.BibEntry; | ||
import org.jabref.model.entry.EntryType; | ||
|
||
public class DeprecatedFieldsTab extends FieldsEditorTab { | ||
public DeprecatedFieldsTab(JabRefFrame frame, BasePanel basePanel, EntryType entryType, EntryEditor parent, BibEntry entry) { | ||
super(frame, basePanel, entryType.getDeprecatedFields(), parent, false, false, entry); | ||
public DeprecatedFieldsTab(BibDatabaseContext databaseContext, SuggestionProviders suggestionProviders) { | ||
super(false, databaseContext, suggestionProviders); | ||
|
||
setText(Localization.lang("Deprecated fields")); | ||
setTooltip(new Tooltip(Localization.lang("Show deprecated BibTeX fields"))); | ||
setGraphic(IconTheme.JabRefIcon.OPTIONAL.getGraphicNode()); | ||
} | ||
|
||
@Override | ||
protected List<String> determineFieldsToShow(BibEntry entry, EntryType entryType) { | ||
return entryType.getDeprecatedFields(); | ||
} | ||
} |
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.