Examples of IEventProcessor


Examples of org.eclipse.ecf.core.util.IEventProcessor

  }

  protected void initialize() throws SharedObjectInitException {
    super.initialize();
    // Add event processor that responds to IContainerConnectedEvent messages
    addEventProcessor(new IEventProcessor() {
      public boolean processEvent(Event event) {
        // If event is IContainerConnectedEvent
        if (event instanceof IContainerConnectedEvent) {
          IContainerConnectedEvent ccevent = (IContainerConnectedEvent) event;
          // Check to make sure it's a client...not the groupID
View Full Code Here

Examples of org.eclipse.ecf.core.util.IEventProcessor

  protected void initialize() throws SharedObjectInitException {
    super.initialize();
    if (isPrimary()) {
      // If primary, then add an event processor that handles activated
      // event by replicating to all current remote containers
      addEventProcessor(new IEventProcessor() {
        public boolean processEvent(Event event) {
          if (event instanceof ISharedObjectActivatedEvent) {
            ISharedObjectActivatedEvent ae = (ISharedObjectActivatedEvent) event;
            if (ae.getActivatedID().equals(getID()) && isConnected()) {
              TestMessagingSharedObject.this.replicateToRemoteContainers(null);
View Full Code Here

Examples of org.eclipse.ecf.core.util.IEventProcessor

  protected void initialize() throws SharedObjectInitException {
    super.initialize();
    if (isPrimary()) {
      // If primary, then add an event processor that handles activated
      // event by replicating to all current remote containers
      addEventProcessor(new IEventProcessor() {
        public boolean processEvent(Event event) {
          if (event instanceof ISharedObjectActivatedEvent) {
            ISharedObjectActivatedEvent ae = (ISharedObjectActivatedEvent) event;
            if (ae.getActivatedID().equals(getID()) && isConnected()) {
              TestSharedObject.this.replicateToRemoteContainers(null);
View Full Code Here

Examples of org.eclipse.ecf.core.util.IEventProcessor

  protected void initialize() throws SharedObjectInitException {
    super.initialize();
    Trace.entering(Activator.PLUGIN_ID,
        SharedObjectDebugOptions.METHODS_ENTERING,
        OptimisticSharedObject.class, "initialize"); //$NON-NLS-1$
    addEventProcessor(new IEventProcessor() {
      public boolean processEvent(Event event) {
        if (event instanceof ISharedObjectActivatedEvent) {
          // If we've been activated, are primary and are connected
          // then replicate to all remotes
          if (isPrimary() && isConnected()) {
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.