Package devplugin

Examples of devplugin.Channel


          }
        });
  }

  private static Channel getChannelForKey(String key) {
    Channel ch = null;

    if(key != null) {
      String[] keyParts = key.split(":");

      if(keyParts.length == 4) {
View Full Code Here


    return list.toArray(new Channel[list.size()]);
  }

  private static void addChannels(ArrayList<Channel> list, String[] channels) {
    for (String id : channels) {
      Channel channel = getChannel(id);
      if (channel != null) {
        list.add(channel);
      }
    }
  }
View Full Code Here

  }

  private static void searchRepetitions(final Program program) {
    Window parent = UiUtilities
        .getLastModalChildOf(MainFrame.getInstance());
    Channel channel = program.getChannel();
    RepetitionDialog dlg = new RepetitionDialog(parent, channel);

    dlg.setPatternText(program.getTitle());
    UiUtilities.centerAndShow(dlg);
  }
View Full Code Here

    }

    boolean removed = false;

    for(int i = mAvailableChannels.size()-1; i >= 0; i--) {
      Channel ch = mAvailableChannels.get(i);

      if(!availableChannels.containsKey(ch)) {
        mAvailableChannels.remove(i);
        mAvailableChannelsMap.remove(ch.getUniqueId());

        /* remove subscribed channels which are not available any more */
        if(mSubscribedChannels.contains(ch)) {
          mLog.warning(ch+" is not available any more");
          unsubscribeChannel(ch);
View Full Code Here

  }

  private static void calculateChannelPositions() {
    mSubscribedChannelPosition = new HashMap<String, Integer>();
    for (int i = 0; i < mSubscribedChannels.size(); i++) {
      Channel ch = mSubscribedChannels.get(i);

      if (ch != null) {
        mSubscribedChannelPosition.put(ch.getUniqueId(), i);
      }
    }
  }
View Full Code Here

      }
    }

    mSubscribedChannels = new ArrayList<Channel>(channelArr.length);
    for (int i = 0; i < channelArr.length; i++) {
      final Channel channel = channelArr[i];
      if (channel == null) {
        mLog.warning("cannot subscribe channel #" + i + " - is null");
      } else {
        mSubscribedChannels.add(channel);
      }
View Full Code Here

    }

    int n = mAvailableChannels.size();

    for(int i = 0; i < n; i++) {
      Channel channel = mAvailableChannels.get(i);

      if (channel.getId().compareTo(channelId) == 0
          && ((dataServiceId != null && channel.getDataServiceProxy().getId()
              .compareTo(dataService.getId()) == 0) || dataServiceId == null)
          && ((groupId != null && channel.getGroup().getId().compareTo(groupId) == 0) || groupId == null)
          && ((country != null && channel.getCountry().compareTo(country) == 0) || country == null)) {
        return channel;
      }
    }
    /*
     * merge-conflict: do we need these lines?
View Full Code Here

TOP

Related Classes of devplugin.Channel

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.