Package org.eclipse.ecf.datashare

Examples of org.eclipse.ecf.datashare.IChannel.dispose()


        final IChannel channel = (IChannel) it.next();
        // dispose the channel in a SafeRunner so exceptions don't
        // prevent us from disposing other channels
        SafeRunner.run(new ISafeRunnable() {
          public void run() throws Exception {
            channel.dispose();
          }

          public void handleException(Throwable t) {
            log(new Status(IStatus.ERROR, Util.PLUGIN_ID,
                "Error disposing channel: " + channel, t)); //$NON-NLS-1$
View Full Code Here


  public boolean removeChannel(ID channelId) {
    IChannel channel = (IChannel) channels.remove(channelId);
    if (channel == null) {
      return false;
    } else {
      channel.dispose();
      return true;
    }
  }

  public void removeListener(IChannelContainerListener listener) {
View Full Code Here

  public void dispose() {
    super.dispose();
    for (Iterator i = channels.keySet().iterator(); i.hasNext();) {
      IChannel chan = (IChannel) channels.get(i.next());
      chan.dispose();
    }
    channels.clear();
  }

  private IChannel createChannel(IChannelContainerAdapter adapter) {
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.