use of com.frostwire.gui.theme.SkinMenuItem in project frostwire by frostwire.
the class BTDownloadMediator method createPopupMenu.
protected JPopupMenu createPopupMenu() {
JPopupMenu menu = new SkinPopupMenu();
if (playSingleMediaFileAction.isEnabled()) {
menu.add(new SkinMenuItem(playSingleMediaFileAction));
}
menu.add(new SkinMenuItem(resumeAction));
menu.add(new SkinMenuItem(pauseAction));
menu.addSeparator();
menu.add(new SkinMenuItem(showInLibraryAction));
menu.add(new SkinMenuItem(exploreAction));
menu.addSeparator();
menu.add(new SkinMenuItem(shareTorrentAction));
if (OSUtils.isMacOSX() || OSUtils.isWindows()) {
menu.add(new SkinMenuItem(sendToItunesAction));
}
menu.add(new SkinMenuItem(copyMagnetAction));
menu.add(new SkinMenuItem(copyHashAction));
SkinMenu addToPlaylistMenu = BTDownloadMediatorAdvancedMenuFactory.createAddToPlaylistSubMenu();
if (addToPlaylistMenu != null) {
menu.add(addToPlaylistMenu);
}
menu.addSeparator();
menu.add(new SkinMenuItem(removeAction));
menu.add(new SkinMenuItem(BTDownloadActions.REMOVE_TORRENT_ACTION));
menu.add(new SkinMenuItem(BTDownloadActions.REMOVE_TORRENT_AND_DATA_ACTION));
menu.add(new SkinMenuItem(removeYouTubeAction));
SkinMenu advancedMenu = BTDownloadMediatorAdvancedMenuFactory.createAdvancedSubMenu();
if (advancedMenu != null) {
menu.addSeparator();
menu.add(advancedMenu);
}
return menu;
}
use of com.frostwire.gui.theme.SkinMenuItem in project frostwire by frostwire.
the class AbstractLibraryTableMediator method addToStarredPlaylistMenuItem.
private void addToStarredPlaylistMenuItem(SkinMenu menu, Playlist starredPlaylist) {
AddToPlaylistAction addToStarredAction = new AddToPlaylistAction(starredPlaylist);
addToStarredAction.putValue(Action.SMALL_ICON, GUIMediator.getThemeImage("star_on"));
addToStarredAction.setName(tr("Add to") + " " + tr(starredPlaylist.getName()));
menu.add(new SkinMenuItem(addToStarredAction));
}
Aggregations