/* (non-Javadoc)
   * @see org.eclipse.wst.server.ui.wizard.WizardFragment#createComposite(org.eclipse.swt.widgets.Composite, org.eclipse.wst.server.ui.wizard.IWizardHandle)
   */
  @Override
  public Composite createComposite(Composite parent, IWizardHandle handle) {
    wizardHandle = handle;
    elasticBeanstalkClient =
        AwsToolkitCore.getClientFactory()
            .getElasticBeanstalkClientByEndpoint(wizardDataModel.getRegionEndpoint());
    handle.setImageDescriptor(
        AwsToolkitCore.getDefault()
            .getImageRegistry()
            .getDescriptor(AwsToolkitCore.IMAGE_AWS_LOGO));
    handle.setMessage("", IStatus.OK);
    connectionStatus = testConnection();

    if (connectionStatus.isOK()) {
      Composite composite = new Composite(parent, SWT.NONE);
      composite.setLayout(new GridLayout(2, false));

      createRegionSection(composite);
      createApplicationSection(composite);
      createEnvironmentSection(composite);
      createImportSection(composite);

      bindControls();
      initializeDefaults();
      return composite;
    } else {
      return new ErrorComposite(parent, SWT.NONE, connectionStatus);
    }
  }
    public TerminateEnvironmentsAction(List<EnvironmentDescription> environments) {
      this.environments = environments;

      this.setText("Terminate Environment");
      this.setToolTipText("Terminate the selected environments");
      this.setImageDescriptor(
          AwsToolkitCore.getDefault()
              .getImageRegistry()
              .getDescriptor(AwsToolkitCore.IMAGE_REMOVE));
    }