/*
   * (non-Javadoc)
   * @see org.eclipse.jface.preference.PreferencePage#performApply()
   */
  @Override
  protected void performApply() {

    String componentName = this.componentNameText.getText();
    String componentId = this.componentIdText.getText();
    String componentVersion = this.componentVersionText.getText();
    String suType = this.componentFunctionText.getText();

    Properties projectProperties = new Properties();
    projectProperties.put(PetalsSPPropertiesManager.COMPONENT_FUNCTION, suType);
    projectProperties.put(PetalsSPPropertiesManager.COMPONENT_NAME, componentName);
    projectProperties.put(PetalsSPPropertiesManager.COMPONENT_DEPLOYMENT_ID, componentId);
    projectProperties.put(PetalsSPPropertiesManager.COMPONENT_VERSION, componentVersion);
    try {
      PetalsSPPropertiesManager.saveProperties(projectProperties, this.selectedProject);

    } catch (Exception e) {
      MessageDialog.openError(
          getShell(), "Error", "An error occurred while saving the properties.");
      PetalsServicesPlugin.log(e, IStatus.ERROR);
    }
  }