Examples of SubscriptionDownloadDetails


Examples of com.aelitis.azureus.core.subs.SubscriptionUtils.SubscriptionDownloadDetails

    availableSubscriptions = (SubscriptionDownloadDetails[]) notYetSubscribed.toArray(new SubscriptionDownloadDetails[notYetSubscribed.size()]);*/
    availableSubscriptions = SubscriptionUtils.getAllCachedDownloadDetails(core);
    Arrays.sort(availableSubscriptions,new Comparator() {
      public int compare(Object o1, Object o2) {
        if(! (o1 instanceof SubscriptionDownloadDetails && o2 instanceof SubscriptionDownloadDetails)) return 0;
        SubscriptionDownloadDetails sub1 = (SubscriptionDownloadDetails) o1;
        SubscriptionDownloadDetails sub2 = (SubscriptionDownloadDetails) o2;
        return sub1.getDownload().getDisplayName().compareTo(sub2.getDownload().getDisplayName());
      }
    });
   
   
    shell = ShellFactory.createMainShell(SWT.TITLE | SWT.CLOSE | SWT.RESIZE);
View Full Code Here

Examples of com.aelitis.azureus.core.subs.SubscriptionUtils.SubscriptionDownloadDetails

  {
    if ( availableSubscriptions != null ){
     
      for (int i=0;i<availableSubscriptions.length;i++){
       
        SubscriptionDownloadDetails details = availableSubscriptions[i];
       
        if ( details.getDownload()== download ){
           
          final int f_i = i;
         
          Utils.execSWTThread(
            new Runnable()
View Full Code Here

Examples of com.aelitis.azureus.core.subs.SubscriptionUtils.SubscriptionDownloadDetails

      libraryTable.addListener(SWT.SetData, new Listener() {
        public void handleEvent(Event event) {
            TableItem item = (TableItem) event.item;
                int index = libraryTable.indexOf (item);
              
                SubscriptionDownloadDetails subInfo = availableSubscriptions[index];
                item.setText (subInfo.getDownload().getDisplayName());
                item.setData("subscriptions",subInfo.getSubscriptions());
                boolean isSubscribed = false;
                Subscription[] subs = subInfo.getSubscriptions();
                for(int i = 0 ; i < subs.length ; i++) {
                  if(subs[i].isSubscribed()) isSubscribed = true;
                }
                if(isSubscribed) {
                  item.setForeground(display.getSystemColor(SWT.COLOR_GRAY));
                }
               
                if(subInfo.getDownload() == download) {
                  libraryTable.setSelection(item);
                  selectionListener.handleEvent(event);
                }
                if(index == 0 && download == null) {
                  libraryTable.setSelection(item);
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.