Examples of PlayPlaylistAction


Examples of org.jampa.gui.actions.playlist.PlayPlaylistAction

   
    MenuItem newPlayPlaylistItem = new MenuItem(playPlaylistMenu, SWT.PUSH);
    newPlayPlaylistItem.setText(Messages.getString("TrayController.MenuDefaultPlaylist")); //$NON-NLS-1$
    newPlayPlaylistItem.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        new PlayPlaylistAction(Constants.DEFAULT_PLAYLIST_ID).run();
      }
    });
   
    new MenuItem(playPlaylistMenu, SWT.SEPARATOR);
   
    Object[] playlistList = Controller.getInstance().getPlaylistController().getPlaylistList();
    for (int i = 0; i < playlistList.length; i++) {
      final MenuItem playlistItem = new MenuItem(playPlaylistMenu, SWT.PUSH);
      playlistItem.setText(((Playlist) playlistList[i]).getName());
      playlistItem.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          new PlayPlaylistAction(playlistItem.getText()).run();
        }
      });
    }
   
    if (ApplicationUtils.doesEngineSupportPodcasts()) {
View Full Code Here

Examples of org.jampa.gui.actions.playlist.PlayPlaylistAction

        if (obj != null) {
          String param = Controller.getInstance().getPreferenceStore().getString(PreferenceConstants.PLAYLISTSVIEW_DOUBLECLICK_ACTION);
          if (param.equals("2")) { //$NON-NLS-1$
            new OpenAndPlayPlaylistAction(((Playlist) obj).getName()).run();
          } else if (param.equals("1")) { //$NON-NLS-1$
            new PlayPlaylistAction(((Playlist) obj).getName()).run();
          } else {
            new OpenPlaylistAction(((Playlist) obj).getName()).run();
          }
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.