Package org.fusesource.ide.server.view

Examples of org.fusesource.ide.server.view.SshView


      KarafUIPlugin.getLogger().error("Unable to open the terminal view!");
      return;
    }
   
    // get the view
    final SshView connectorView = (SshView)vp;
   
    connectorView.setPartName(server.getName());
   
    // add a connection listener
    connectorView.addConnectionListener(this);
   
    // create the connection
    try {
      connectorView.createConnectionIfNotExists(host, port, userName, passwd);
    } catch (Exception ex) {
      KarafUIPlugin.getLogger().error("Unable to connect via SSH", ex);
    }
  }
View Full Code Here


      KarafUIPlugin.getLogger().error("Unable to open the terminal view!");
      return;
    }
   
    // get the view
    final SshView connectorView = (SshView)vp;
   
    // add a connection listener
    connectorView.addConnectionListener(this);
    connectorView.setPartName(TERMINAL_VIEW_LABEL);

    connectorView.onTerminalDisconnect();
   
    // remove from the active connectors
    connectors.remove(server);
  }
View Full Code Here

      FabricPlugin.getLogger().error("Unable to open the terminal view!");
      return;
    }

    // get the view
    final SshView connectorView = (SshView) vp;

    connectorView.setPartName(theContainer.getId());

    // add a connection listener
    if (listener != null) {
      connectorView.addConnectionListener(listener);
    }

    // create the connection
    try {
      FabricPlugin.getLogger().debug(
          "Creating the connection if it doesn't exist for host: "
              + host + " port " + port + " user " + user
              + " pwd " + password);

      // TODO set the title? open a new view if there's not one already
      // etc?
      connectorView.createConnectionIfNotExists(host, port, user,
          password);
    } catch (Exception ex) {
      FabricPlugin.getLogger().error("Unable to connect via SSH", ex);
    }
  }
View Full Code Here

      FabricPlugin.getLogger().error("Unable to open the terminal view!");
      return;
    }

    // get the view
    final SshView connectorView = (SshView)vp;

    connectorView.setPartName(id);

    // add a connection listener
    connectorView.addConnectionListener(new ITerminalConnectionListener() {

      @Override
      public void onDisconnect() {
      }

      @Override
      public void onConnect() {
        connectorView.setFocus();
      }
    });

    // create the connection
    try {
      FabricPlugin.getLogger().debug("Creating the connection if it doesn't exist for host: " + host + " port " + port + " user " + user);

      // TODO set the title? open a new view if there's not one already etc?
      connectorView.createConnectionIfNotExists(host,
          port,
          user,
          password);
    } catch (Exception ex) {
      FabricPlugin.getLogger().error("Unable to connect via SSH", ex);
View Full Code Here

      FabricPlugin.getLogger().error("Unable to open the terminal view!");
      return;
    }

    // get the view
    final SshView connectorView = (SshView) vp;

    connectorView.setPartName(Messages.shellViewLabel);

    // add a connection listener
    connectorView.removeConnectionListener(this);
  }
View Full Code Here

TOP

Related Classes of org.fusesource.ide.server.view.SshView

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.