Package org.eclipse.ecf.core.events

Examples of org.eclipse.ecf.core.events.ContainerConnectedEvent


    Map<User,Status> friends = client.getFriends();
    for(User u : friends.keySet()){
      TwipseLog.logInfo(u.getScreen_name());
      entries.add(new TwipseRosterEntry(this,u,friends.get(u),namespace))
    }
    fireContainerEvent(new ContainerConnectedEvent(guid, connectID));

  }
View Full Code Here


  protected ID handleConnectResponse(ID originalTarget, Object serverData) throws Exception {
    trace("handleConnectResponse:" + originalTarget + ":" + serverData);
    if (originalTarget != null && !originalTarget.equals(getID())) {
      addNewRemoteMember(originalTarget, null);
      // notify listeners
      fireContainerEvent(new ContainerConnectedEvent(this.getID(), originalTarget));
    }
    return originalTarget;
  }
View Full Code Here

    }

    // done setting up this provider, send event
    fireContainerEvent(new ContainerConnectingEvent(this.getID(), targetID,
        connectContext));
    fireContainerEvent(new ContainerConnectedEvent(this.getID(), targetID));
  }
View Full Code Here

    targetID.addSearchPath(getBrowsingDomains(targetID));

    // done setting up this provider, send event
    fireContainerEvent(new ContainerConnectingEvent(this.getID(), targetID,
        connectContext));
    fireContainerEvent(new ContainerConnectedEvent(this.getID(), targetID));
  }
View Full Code Here

    counter++;
  }

  public void connect(ID targetId, IConnectContext connectContext)
      throws ContainerConnectException {
    fireContainerEvent(new ContainerConnectedEvent(getID(),
        getConnectedID()));
  }
View Full Code Here

   * @see org.eclipse.ecf.core.IContainer#connect(org.eclipse.ecf.core.identity.ID, org.eclipse.ecf.core.security.IConnectContext)
   */
  public void connect(ID targetId, IConnectContext connectContext)
      throws ContainerConnectException {
    fireContainerEvent(new ContainerConnectingEvent(this.getID(), targetId, connectContext));
    fireContainerEvent(new ContainerConnectedEvent(this.getID(), targetId));
    this.targetId = targetId;
  }
View Full Code Here

  /* (non-Javadoc)
   * @see org.eclipse.ecf.core.IContainer#disconnect()
   */
  public void disconnect() {
    fireContainerEvent(new ContainerDisconnectingEvent(this.getID(), targetId));
    fireContainerEvent(new ContainerConnectedEvent(this.getID(), targetId));
  }
View Full Code Here

    fireContainerEvent(new ContainerConnectingEvent(getID(), targetID));

    // XXX connect to remote service here

    this.targetID = targetID;
    fireContainerEvent(new ContainerConnectedEvent(getID(), targetID));

  }
View Full Code Here

  }

  protected void memberChanged(Member m, boolean add) {
    if (thread != null) {
      if (add) {
        send(new ContainerConnectedEvent(containerID, m.getID()));
      } else {
        send(new ContainerDisconnectedEvent(containerID, m.getID()));
      }
    }
  }
View Full Code Here

        });
        multiuserchat.join(nickname);
        connectionState = CONNECTED;
        remoteServerID = roomID;
        containerHelper.setRoomID(remoteServerID);
        fireContainerEvent(new ContainerConnectedEvent(this.getID(), roomID));
      } catch (final Exception e) {
        cleanUpConnectFail();
        final ContainerConnectException ce = new ContainerConnectException(NLS.bind(Messages.XMPPChatRoomContainer_EXCEPTION_JOINING_ROOM, roomID));
        ce.setStackTrace(e.getStackTrace());
        throw ce;
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.events.ContainerConnectedEvent

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.