use of com.frostwire.gui.theme.SkinPopupMenu 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;
}
Aggregations