Examples of AgentAction


Examples of com.adito.agent.client.AgentAction

  protected void doInit() {
    super.doInit();
    authImage = loadImage(SWTSystemTrayGUI.class, "/images/authentication-dialog.png"); //$NON-NLS-1$
   
    addMenu("Connection");
    addMenuItem("Connection", new AgentAction() {

      public void actionPerformed() {
        try {
          getAgent().connect("localhost", 443, true, null, null, false);
        } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (HttpException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (UnsupportedAuthenticationException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (AuthenticationCancelledException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
      }

      public String getAction() {
        return "Connect";
      }
     
    });
    addMenuItem("Connection", new AgentAction() {

      public void actionPerformed() {
        getAgent().disconnect();
      }
View Full Code Here

Examples of jade.content.AgentAction

    // Properly handle the SL action, done and result operators
    if (ce instanceof Action) {
      return (AgentAction) ((Action) ce).getAction();
    }
    else if (ce instanceof Done) {
      AgentAction act = (AgentAction) ((Done) ce).getAction();
      if (act instanceof Action) {
        return (AgentAction) ((Action) act).getAction();
      }
      else {
        return act;
      }
    }
    else if (ce instanceof Result) {
      AgentAction act = (AgentAction) ((Result) ce).getAction();
      if (act instanceof Action) {
        return (AgentAction) ((Action) act).getAction();
      }
      else {
        return act;
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.