Package org.knapper.client.core

Examples of org.knapper.client.core.ClientChangeEvent


  private void createEventListener() {
    eventListener = new IEventListener() {
     
      public void handleEvent(IEvent event) {
        if (event instanceof ClientChangeEvent) {
          ClientChangeEvent cce = (ClientChangeEvent) event;
         
          switch (cce.getChange()) {
          case ClientChangeEvent.STOPPED:
            try {
              window.getWorkbench().showPerspective(
                  IPartIds.HOME_PERSPECTIVE_ID, window);
            } catch (WorkbenchException e) {
View Full Code Here


      if (listener == null) {
        listener = new IEventListener() {
 
          public void handleEvent(IEvent event) {
            if (event instanceof ClientChangeEvent) {
              ClientChangeEvent cce = (ClientChangeEvent) event;
              if (cce.getChange() == ClientChangeEvent.AUTHENTICATED) {
                clientCore.getEventService().removeEventListener(listener);
                fAuthenticated = true;
              }
            }
           
View Full Code Here

   
    if (eventListener == null) {
      eventListener = new IEventListener() {
        public void handleEvent(IEvent event) {
          if (event instanceof ClientChangeEvent) {
            ClientChangeEvent cce = (ClientChangeEvent) event;
           
            if (cce.getChange() == ClientChangeEvent.STARTED) {
              setRunningState();
            }
           
            if (cce.getChange() == ClientChangeEvent.AUTHENTICATED) {
              setAuthState();
            }
           
            if (cce.getChange() == ClientChangeEvent.STOPPED) {
              setStoppedState();
            }
          }
        }
      };
View Full Code Here

  private void createEventListener() {
    eventListener = new IEventListener() {
     
      public void handleEvent(IEvent event) {
        if (event instanceof ClientChangeEvent) {
          ClientChangeEvent cce = (ClientChangeEvent) event;
         
          switch (cce.getChange()) {
          case ClientChangeEvent.STOPPED:
            try {
              window.getWorkbench().showPerspective(
                  IPartIds.HOME_PERSPECTIVE_ID, window);
            } catch (WorkbenchException e) {
View Full Code Here

   
    eventListener = new IEventListener() {
     
      public void handleEvent(IEvent event) {
        if (event instanceof ClientChangeEvent) {
          ClientChangeEvent cce = (ClientChangeEvent) event;
         
          handleClientChangeEvent(cce);
        }
      }
    }
View Full Code Here

      serverWorker = null;
    }
  }
 
  private void fireChangeEvent(String message, int type, Exception e) {
    ClientChangeEvent cce = new ClientChangeEvent(
        this,
        message,
        type);
   
    cce.setCause(e);

    clientProtocol.handleEvent(cce);
  }
View Full Code Here

TOP

Related Classes of org.knapper.client.core.ClientChangeEvent

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.