Ejemplo n.º 1
0
 private void updateServerDetails(ServersTreeStructure.RemoteServerNode node) {
   RemoteServer<?> server = ((ServersTreeStructure.RemoteServerNode) node).getValue();
   ServerConnection connection = ServerConnectionManager.getInstance().getConnection(server);
   if (connection == null || connection.getStatus() == ConnectionStatus.DISCONNECTED) {
     showMessageLabel("Double-click on the server node to connect");
   } else {
     showMessageLabel(connection.getStatusText());
   }
 }
Ejemplo n.º 2
0
    private void redeploy() {
      final ServerConnection connection =
          ServerConnectionManager.getInstance().getOrCreateConnection(myServerRuntime.getServer());

      final RemoteServersView view = RemoteServersView.getInstance(myDeploymentTask.getProject());
      view.showServerConnection(connection);

      connection.deploy(
          myDeploymentTask,
          new ParameterizedRunnable<String>() {

            @Override
            public void run(String s) {
              view.showDeployment(connection, s);
            }
          });
    }