public CloudSpacesSelectionPart(
      CloudSpaceChangeHandler spaceChangeHandler,
      CloudFoundryServer cloudServer,
      IWizardHandle wizardHandle) {
    this.spaceChangeHandler = spaceChangeHandler;

    String serverTypeId = cloudServer.getServer().getServerType().getId();

    wizardHandle.setTitle("Organizations and Spaces");
    wizardHandle.setDescription(DEFAULT_DESCRIPTION);
    ImageDescriptor banner = CloudFoundryImages.getWizardBanner(serverTypeId);
    if (banner != null) {
      wizardHandle.setImageDescriptor(banner);
    }
  }
 protected void serverSelectionChanged(
     CloudFoundryServer cloudServer, CloudFoundryApplicationModule appModule, IAction action) {
   if (cloudServer != null
       && (cloudServer.getServer().getServerState() == IServer.STATE_STARTED)) {
     if (appModule != null) {
       int state = appModule.getState();
       // Enable only if application is running and deployed
       if (state == IServer.STATE_STARTED && appModule.getApplication() != null) {
         action.setEnabled(true);
         return;
       }
     }
   }
   action.setEnabled(false);
 }
 protected CloudFoundryCredentialsWizardPage(CloudFoundryServer server) {
   super(server.getServer().getName() + " Credentials");
   spaceChangeHandler = new CloudSpaceChangeHandler(server);
   credentialsPart = new CloudFoundryCredentialsPart(server, this, spaceChangeHandler);
 }