Examples of ILibraryItem


Examples of org.jampa.model.library.ILibraryItem

    }
   
  }
 
  private void createList(ILibraryItem itemList) {
    ILibraryItem item;
    AudioItem audioItem;
    Iterator<ILibraryItem> iter = itemList.getChildrenList().iterator();
    while (iter.hasNext()) {
      item = iter.next();
      if (item instanceof TitleItem) {
View Full Code Here

Examples of org.jampa.model.library.ILibraryItem

      Controller.getInstance().getPlaylistController().addFileToPlayList(_playlistName, ((TitleItem) item).getFilePath(), false, false, _insertionIndex);
      if (_insertionIndex != -1) {
        _insertionIndex++;
      }
    } else {
      ILibraryItem child;
      Iterator<ILibraryItem> childrenIter = item.getChildrenList().iterator();
      while (childrenIter.hasNext()) {
        child = childrenIter.next();
        internalAdd(monitor, child);
      }     
View Full Code Here

Examples of org.jampa.model.library.ILibraryItem

 
 
  private String getFirstSelectedItemName() {
    String result = null;
    ISelection selection = treeViewer.getSelection();
    ILibraryItem selectedItem = (ILibraryItem) ((IStructuredSelection) selection).getFirstElement();
    if (selectedItem != null) {
      result = selectedItem.getName();
    }
   
    return result;
  }
View Full Code Here

Examples of org.jampa.model.library.ILibraryItem

    }           

    @Override
    public Object[] getChildren(Object parentElement) {     
      if (parentElement instanceof ILibraryItem) {
        ILibraryItem item = (ILibraryItem) parentElement;
        return item.getChildren();
      }
      return EMPTY_ARRAY;
    }
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.