Skip to content

Commit

Permalink
Remove plaintextimport and float entries from righ-click menu as it i…
Browse files Browse the repository at this point in the history
…s not entry instance related
  • Loading branch information
stefan-kolb committed Apr 5, 2016
1 parent 7127e4b commit 7fd3310
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/java/net/sf/jabref/gui/menus/RightClickMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ public RightClickMenu(JabRefFrame frame, BasePanel panel) {
addSeparator();

add(typeMenu);
add(new GeneralAction(Actions.PLAIN_TEXT_IMPORT, Localization.lang("Plain text import")));

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

Expand All @@ -198,11 +197,6 @@ public RightClickMenu(JabRefFrame frame, BasePanel panel) {
groupMoveTo = add(new GeneralAction(Actions.MOVE_TO_GROUP, Localization.lang("Move to group")));
add(groupMoveTo);

floatMarked.addActionListener(e -> {
Globals.prefs.putBoolean(JabRefPreferences.FLOAT_MARKED_ENTRIES, floatMarked.isSelected());
panel.mainTable.refreshSorting(); // Bad remote access
});

// create disabledIcons for all menu entries
frame.createDisabledIconsForMenuEntries(this);
}
Expand Down Expand Up @@ -235,10 +229,6 @@ public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
groupRemove.setEnabled(true);
groupMoveTo.setEnabled(true);
}

addSeparator();
floatMarked.setSelected(Globals.prefs.getBoolean(JabRefPreferences.FLOAT_MARKED_ENTRIES));
add(floatMarked);
}


Expand Down

0 comments on commit 7fd3310

Please sign in to comment.