Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/maintable-beta' into selectFil…
Browse files Browse the repository at this point in the history
…esDlg

* upstream/maintable-beta:
  fix failing tests in maintable beta (#3863)
  • Loading branch information
Siedlerchr committed Mar 19, 2018
2 parents 298a28f + 06d6736 commit 773d4cc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/gui/BasePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ public void updateTableFont() {
private void createMainTable() {
bibDatabaseContext.getDatabase().registerListener(SpecialFieldDatabaseChangeListener.INSTANCE);

mainTable = new MainTable(tableModel, frame, this, bibDatabaseContext, preferences.getTablePreferences(), externalFileTypes, Globals.getKeyPrefs());
mainTable = new MainTable(tableModel, frame, this, bibDatabaseContext, preferences.getTablePreferences(), externalFileTypes, preferences.getKeyBindings());

mainTable.updateFont();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public JabRefIcon getIcon() {
}

public void setIcon(JabRefIcon icon) {
Objects.requireNonNull(icon);
this.icon = icon;
label.setIcon(this.icon.getSmallIcon());
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/gui/keyboard/KeyBinding.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public enum KeyBinding {
CLEANUP("Cleanup", Localization.lang("Cleanup entries"), "alt+F8", KeyBindingCategory.QUALITY),
CLOSE_DATABASE("Close library", Localization.lang("Close library"), "ctrl+W", KeyBindingCategory.FILE),
CLOSE_DIALOG("Close dialog", Localization.lang("Close dialog"), "ESCAPE", KeyBindingCategory.FILE),
CLOSE_ENTRY_EDITOR("Close entry editor", Localization.lang("Close entry editor"), "ESC", KeyBindingCategory.VIEW),
CLOSE_ENTRY_EDITOR("Close entry editor", Localization.lang("Close entry editor"), "Esc", KeyBindingCategory.VIEW),
COPY("Copy", Localization.lang("Copy"), "ctrl+C", KeyBindingCategory.EDIT),
COPY_TITLE("Copy title", Localization.lang("Copy title"), "ctrl+shift+alt+T", KeyBindingCategory.EDIT),
COPY_CITE_BIBTEX_KEY("Copy \\cite{BibTeX key}", Localization.lang("Copy \\cite{BibTeX key}"), "ctrl+K", KeyBindingCategory.EDIT),
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/jabref/gui/util/ControlHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public static void loadFXMLForControl(Parent control) {
fxmlLoader.load();

// Add our base css file
Globals.getThemeLoader().installBaseCss(control);
if (Globals.getThemeLoader() != null) {
Globals.getThemeLoader().installBaseCss(control);
}

} catch (IOException exception) {
LOGGER.error("Problem loading fxml for control", exception);
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/org/jabref/gui/BasePanelTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.jabref.model.database.BibDatabaseContext;
import org.jabref.model.entry.BibEntry;
import org.jabref.preferences.PreviewPreferences;
import org.jabref.testutils.category.GUITest;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
Expand All @@ -23,6 +24,7 @@
import static org.mockito.Mockito.RETURNS_MOCKS;
import static org.mockito.Mockito.mock;

@GUITest
@ExtendWith(ApplicationExtension.class)
public class BasePanelTest {

Expand Down

This file was deleted.

0 comments on commit 773d4cc

Please sign in to comment.