Skip to content

Commit

Permalink
Separate New Article and New Entry Action in the Toolbar (#5204)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusDietz authored and Siedlerchr committed Aug 23, 2019
1 parent 854cd51 commit acbc8a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/jabref/gui/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ private Node createToolbar() {

HBox rightSide = new HBox(
factory.createIconButton(StandardActions.NEW_ARTICLE, new NewEntryAction(this, StandardEntryType.Article, dialogService, Globals.prefs, stateManager)),
factory.createIconButton(StandardActions.NEW_ENTRY, new NewEntryAction(this, dialogService, Globals.prefs, stateManager)),
factory.createIconButton(StandardActions.DELETE_ENTRY, new OldDatabaseCommandWrapper(Actions.DELETE, this, stateManager)),
new Separator(Orientation.VERTICAL),
factory.createIconButton(StandardActions.UNDO, new OldDatabaseCommandWrapper(Actions.UNDO, this, stateManager)),
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/gui/actions/StandardActions.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public enum StandardActions implements Action {
SELECT_ALL(Localization.lang("Select all"), KeyBinding.SELECT_ALL),

NEW_ENTRY(Localization.lang("New entry"), IconTheme.JabRefIcons.ADD_ENTRY, KeyBinding.NEW_ENTRY),
NEW_ARTICLE(Localization.lang("New article"), IconTheme.JabRefIcons.ADD_ENTRY),
NEW_ARTICLE(Localization.lang("New article"), IconTheme.JabRefIcons.ADD_ARTICLE),
NEW_ENTRY_FROM_PLAINTEX(Localization.lang("New entry from plain text"), KeyBinding.NEW_FROM_PLAIN_TEXT),
LIBRARY_PROPERTIES(Localization.lang("Library properties")),
EDIT_PREAMBLE(Localization.lang("Edit preamble")),
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/jabref/gui/icon/IconTheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ public enum JabRefIcons implements JabRefIcon {
ADD(MaterialDesignIcon.PLUS_CIRCLE_OUTLINE),
ADD_FILLED(MaterialDesignIcon.PLUS_CIRCLE),
ADD_NOBOX(MaterialDesignIcon.PLUS),
ADD_ENTRY(MaterialDesignIcon.BOOKMARK_PLUS),
ADD_ARTICLE(MaterialDesignIcon.PLUS),
ADD_ENTRY(MaterialDesignIcon.PLAYLIST_PLUS),
EDIT_ENTRY(MaterialDesignIcon.TOOLTIP_EDIT),
EDIT_STRINGS(MaterialDesignIcon.TOOLTIP_TEXT),
FOLDER(MaterialDesignIcon.FOOD_FORK_DRINK),
Expand Down

0 comments on commit acbc8a2

Please sign in to comment.