Package org.eclipse.ecf.core.events

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


      TwipseLog.logError("ErroreID", e);
      throw e;
    }

    //client = new TwitterClient();
    fireContainerEvent(new ContainerConnectingEvent(guid, targetID));
    connectID = (TwitterID) targetID;
    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))
View Full Code Here


        throw new ContainerConnectException(e);
      }
    }

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

   
    // read browsing domains for the given targetID/searchpath and merge with existing
    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

  /* (non-Javadoc)
   * @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

   */
  public void connect(ID targetID, IConnectContext connectContext) throws ContainerConnectException {
    if (!targetID.getNamespace().getName().equals(getConnectNamespace().getName()))
      throw new ContainerConnectException("targetID not of appropriate Namespace");

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

    // XXX connect to remote service here

    this.targetID = targetID;
    fireContainerEvent(new ContainerConnectedEvent(getID(), targetID));
View Full Code Here

  public void connect(ID remote, IConnectContext connectContext) throws ContainerConnectException {
    if (!(remote instanceof XMPPRoomID)) {
      throw new ContainerConnectException(NLS.bind(Messages.XMPPChatRoomContainer_Exception_Connect_Wrong_Type, remote));
    }
    final XMPPRoomID roomID = (XMPPRoomID) remote;
    fireContainerEvent(new ContainerConnectingEvent(this.getID(), remote, connectContext));
    synchronized (getConnectLock()) {
      try {
        connectionState = CONNECTING;
        remoteServerID = null;
        addSharedObjectToContainer(remote);
View Full Code Here

   */
  public void connect(ID targetID, IConnectContext connectContext) throws ContainerConnectException {
    if (!targetID.getNamespace().getName().equals(getConnectNamespace().getName()))
      throw new ContainerConnectException("targetID not of appropriate Namespace");

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

    // XXX connect to remote service here

    this.targetID = targetID;
    fireContainerEvent(new ContainerConnectedEvent(getID(), targetID));
View Full Code Here

              entries.add(new MSNRosterGroup(MSNContainer.this,
                  group));
            }
          });

      fireContainerEvent(new ContainerConnectingEvent(guid, targetID));
      client.connect(targetID.getName(), (String) cb[0].getObject());
      connectID = (MSNID) targetID;
      fireContainerEvent(new ContainerConnectedEvent(guid, connectID));
      Activator.getDefault().registerService(this);
    } catch (UnsupportedCallbackException e) {
View Full Code Here

TOP

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

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.