Package org.eclipse.ecf.core.sharedobject.events

Examples of org.eclipse.ecf.core.sharedobject.events.ISharedObjectDeactivatedEvent


            buf.append("containerid=").append(soae.getLocalContainerID()).append("]");
            return buf.toString();
          }
        });
      } else if (evt instanceof ISharedObjectDeactivatedEvent) {
        final ISharedObjectDeactivatedEvent sode = (ISharedObjectDeactivatedEvent) evt;
        fireChannelContainerListeners(new IChannelContainerChannelDeactivatedEvent() {
          public ID getChannelID() {
            return sode.getDeactivatedID();
          }

          public ID getChannelContainerID() {
            return sode.getLocalContainerID();
          }

          public String toString() {
            final StringBuffer buf = new StringBuffer("ChannelDeactivatedEvent[");
            buf.append("channelid=").append(sode.getDeactivatedID()).append(";");
            buf.append("containerid=").append(sode.getLocalContainerID()).append("]");
            return buf.toString();
          }
        });
      }
    }
View Full Code Here


    if (event instanceof ISharedObjectActivatedEvent) {
      ISharedObjectActivatedEvent e = (ISharedObjectActivatedEvent) event;
      if (e.getActivatedID().equals(config.getSharedObjectID()))
        activated();
    } else if (event instanceof ISharedObjectDeactivatedEvent) {
      ISharedObjectDeactivatedEvent e = (ISharedObjectDeactivatedEvent) event;
      if (e.getDeactivatedID().equals(config.getSharedObjectID()))
        deactivated();
    } else if (event instanceof ISharedObjectCreateResponseEvent)
      received((ISharedObjectCreateResponseEvent) event);
  }
View Full Code Here

            .getSharedObjectIDs());
      } else {
        otherActivated(ae.getActivatedID());
      }
    } else if (event instanceof ISharedObjectDeactivatedEvent) {
      ISharedObjectDeactivatedEvent ae = (ISharedObjectDeactivatedEvent) event;
      ID myID = getID();
      if (myID == null)
        return;
      if (myID.equals(ae.getDeactivatedID())) {
        deactivated();
      } else {
        otherDeactivated(ae.getDeactivatedID());
      }
    } else if (event instanceof IContainerConnectedEvent) {
      memberAdded(((IContainerConnectedEvent) event).getTargetID());
    } else if (event instanceof IContainerDisconnectedEvent) {
      memberRemoved(((IContainerDisconnectedEvent) event).getTargetID());
View Full Code Here

                buf.append("containerid=").append(soae.getLocalContainerID()).append("]"); //$NON-NLS-1$ //$NON-NLS-2$
                return buf.toString();
              }
            });
        } else if (event instanceof ISharedObjectDeactivatedEvent) {
          final ISharedObjectDeactivatedEvent sode = (ISharedObjectDeactivatedEvent) event;
          if (!sode.getDeactivatedID().equals(getID()))
            fireChannelContainerListeners(new IChannelContainerChannelDeactivatedEvent() {
              public ID getChannelID() {
                return sode.getDeactivatedID();
              }

              public ID getChannelContainerID() {
                return sode.getLocalContainerID();
              }

              public String toString() {
                StringBuffer buf = new StringBuffer("ChannelDeactivatedEvent["); //$NON-NLS-1$
                buf.append("channelid=").append(sode.getDeactivatedID()).append(";"); //$NON-NLS-1$ //$NON-NLS-2$
                buf.append("containerid=").append(sode.getLocalContainerID()).append("]"); //$NON-NLS-1$ //$NON-NLS-2$
                return buf.toString();
              }
            });
        }
        return false;
View Full Code Here

      if (e.getActivatedID().equals(config.getSharedObjectID()))
        activated();
      else
        activated(e.getActivatedID());
    } else if (event instanceof ISharedObjectDeactivatedEvent) {
      ISharedObjectDeactivatedEvent e = (ISharedObjectDeactivatedEvent) event;
      if (e.getDeactivatedID().equals(config.getSharedObjectID()))
        deactivated();
      else
        deactivated(e.getDeactivatedID());
    } else if (event instanceof IContainerConnectedEvent) {
      IContainerConnectedEvent e = (IContainerConnectedEvent) event;
      if (e.getTargetID().equals(e.getLocalContainerID()))
        connected();
      else
        connected(e.getTargetID());
    } else if (event instanceof IContainerDisconnectedEvent) {
      IContainerDisconnectedEvent e = (IContainerDisconnectedEvent) event;
      if (e.getTargetID().equals(e.getLocalContainerID()))
        disconnected();
      else
        disconnected(e.getTargetID());
    } else if (event instanceof ISharedObjectMessageEvent) {
      ISharedObjectMessageEvent e = (ISharedObjectMessageEvent) event;
      received(e.getRemoteContainerID(), e.getData());
    }
  }
View Full Code Here

      if (e.getActivatedID().equals(config.getSharedObjectID()))
        activated();
      else
        activated(e.getActivatedID());
    } else if (event instanceof ISharedObjectDeactivatedEvent) {
      ISharedObjectDeactivatedEvent e = (ISharedObjectDeactivatedEvent) event;
      if (e.getDeactivatedID().equals(config.getSharedObjectID()))
        deactivated();
      else
        deactivated(e.getDeactivatedID());
    } else if (event instanceof IContainerConnectedEvent) {
      IContainerConnectedEvent e = (IContainerConnectedEvent) event;
      if (e.getTargetID().equals(e.getLocalContainerID()))
        connected();
      else
        connected(e.getTargetID());
    } else if (event instanceof IContainerDisconnectedEvent) {
      IContainerDisconnectedEvent e = (IContainerDisconnectedEvent) event;
      if (e.getTargetID().equals(e.getLocalContainerID()))
        disconnected();
      else
        disconnected(e.getTargetID());
    } else if (event instanceof ISharedObjectMessageEvent)
      received((ISharedObjectMessageEvent) event);
  }
View Full Code Here

      ISharedObjectActivatedEvent e = (ISharedObjectActivatedEvent) event;
      if (e.getActivatedID().equals(config.getSharedObjectID()))
        // we're being activated
        handleActivated();
    } else if (event instanceof ISharedObjectDeactivatedEvent) {
      ISharedObjectDeactivatedEvent e = (ISharedObjectDeactivatedEvent) event;
      if (e.getDeactivatedID().equals(config.getSharedObjectID()))
        // we're being deactivated
        handleDeactivated();
      else if (table.contains(e.getDeactivatedID()))
        // a local graph we track is being deactivated
        handleRemoved(e.getDeactivatedID());
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.sharedobject.events.ISharedObjectDeactivatedEvent

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.