Package org.jboss.ide.eclipse.as.wtp.core.server.behavior

Examples of org.jboss.ide.eclipse.as.wtp.core.server.behavior.ControllableServerBehavior


   *
   * @return  the port to use or -1 if not found
   */
  private int getPort() {
    try {
      ControllableServerBehavior csb = (ControllableServerBehavior)getServer().loadAdapter(ControllableServerBehavior.class, null);
      if (csb != null) {
        IServerPortController ctrl = (IServerPortController)csb.getController("port");
        return ctrl.findPort(IServerPortController.KEY_SSH_PORT, -1);       
      }     
    } catch (CoreException ex) {
      Activator.getLogger().error(ex);
    }
View Full Code Here


   *
   * @return  the port to use or -1 if not found
   */
  private int getPort(IServer s) {
    try {
      ControllableServerBehavior csb = (ControllableServerBehavior)s.loadAdapter(ControllableServerBehavior.class, null);
      if (csb != null) {
        IServerPortController ctrl = (IServerPortController)csb.getController("port");
        return ctrl.findPort(IServerPortController.KEY_SSH_PORT, -1);     
      }
    } catch (CoreException ex) {
      Activator.getLogger().error(ex);
    }
View Full Code Here

TOP

Related Classes of org.jboss.ide.eclipse.as.wtp.core.server.behavior.ControllableServerBehavior

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.