Package org.jampa.gui.actions.playlist

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


    Iterator iter = ((IStructuredSelection)selection).iterator();
   
    while (iter.hasNext()) {
      item = (Playlist) iter.next();
      Log.getInstance(MenuOpenPlaylistHandler.class).debug("Openning playlist: " + item.getName()); //$NON-NLS-1$
      new OpenPlaylistAction(item.getName()).run();
    }
    return null;
  }
View Full Code Here


      if (firstItem == null) {
        firstItem = item;
      }
     
      Log.getInstance(MenuOpenPlaylistHandler.class).debug("Openning playlist: " + item.getName()); //$NON-NLS-1$
      new OpenPlaylistAction(item.getName()).run();
    }
   
    if (firstItem != null) {
      IAudioItem firstAudioItem = firstItem.getAudioItemByIndex(0);
      Controller.getInstance().getPlaylistController().playFile(firstItem, firstAudioItem);
View Full Code Here

        wizardDialog.setPageSize(500, 200);
       
        if (wizardDialog.open() == Dialog.OK) {     
          Controller.getInstance().getPlaylistController().addEmptyPlaylist(wizard.getPlaylistName());
          Controller.getInstance().getPlaylistController().addItemToPlaylist(wizard.getPlaylistName(), wizard.getGenerator().getResults(), wizard.getPlay());
          new OpenPlaylistAction(wizard.getPlaylistName()).run();
        }
      }
    };
    playlistGeneratorAction.setActionDefinitionId("Jampa.playlistGeneratorWizard");
    handlerService.activateHandler("Jampa.playlistGeneratorWizard", new ActionHandler(playlistGeneratorAction));
View Full Code Here

          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

Related Classes of org.jampa.gui.actions.playlist.OpenPlaylistAction

Copyright © 2018 www.massapicom. 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.