Package com.adito.agent.client

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

TOP

Related Classes of com.adito.agent.client.AgentAction

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.