Skip to content

Commit

Permalink
Move merge DOI correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Apr 5, 2016
1 parent 7fd3310 commit f1ae91e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/main/java/net/sf/jabref/gui/menus/RightClickMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ public RightClickMenu(JabRefFrame frame, BasePanel panel) {
}
});


add(new GeneralAction(Actions.OPEN_URL, Localization.lang("Open URL or DOI"), IconTheme.JabRefIcon.WWW.getSmallIcon()) {
{
if(!(isFieldSetForSelectedEntry("url") || isFieldSetForSelectedEntry("doi"))) {
Expand All @@ -170,21 +169,19 @@ public RightClickMenu(JabRefFrame frame, BasePanel panel) {
}
});

addSeparator();

add(typeMenu);

add(new GeneralAction(Actions.MERGE_DOI, Localization.lang("Get BibTeX data from DOI")) {
{
if (!(isFieldSetForSelectedEntry("doi"))) {
this.setEnabled(false);
}
}
});

addSeparator();

add(typeMenu);

add(new GeneralAction(Actions.ADD_FILE_LINK, Localization.lang("Attach file"), IconTheme.JabRefIcon.ATTACH_FILE.getSmallIcon()));

add(frame.getMassSetField());
add(new GeneralAction(Actions.ADD_FILE_LINK, Localization.lang("Attach file"), IconTheme.JabRefIcon.ATTACH_FILE.getSmallIcon()));
add(frame.getManageKeywords());

addSeparator(); // for "add/move/remove to/from group" entries (appended here)
Expand Down

0 comments on commit f1ae91e

Please sign in to comment.