Examples of PodcastItemDownloaderJob


Examples of org.jampa.net.podcast.PodcastItemDownloaderJob

    Iterator<?> iter = ((IStructuredSelection) selection).iterator();
    while (iter.hasNext()) {
      obj = iter.next();
      if ((obj != null) &&
          (obj instanceof PodcastItem)) {
        new PodcastItemDownloaderJob(_thePodcast, (PodcastItem) obj, false).schedule();
      }
    }
  }
View Full Code Here

Examples of org.jampa.net.podcast.PodcastItemDownloaderJob

  private void playFile(IPlaylist playlist, IAudioItem item, boolean fromNext) {
   
    if ((item instanceof PodcastItem) &&
        (Controller.getInstance().getPreferenceStore().getBoolean(PreferenceConstants.PODCAST_DOWNLOAD_BEFORE_PLAY))) {
      if (!((PodcastItem) item).doesTemporaryFileExists()) {
        PodcastItemDownloaderJob downloadJob = new PodcastItemDownloaderJob(playlist, (PodcastItem) item);
        downloadJob.schedule();
       
        // If we come from playNextInPlaylist(), and we start downloading the next item,
        // we must stop playback in order to update icons state...
        if (fromNext) {
          stopPlayback();
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.