private void createBrowseButton(SelectionListener listener, ExporterProperty prop) {
   disposeBrowseButton();
   addPathButton = new Button(value.getParent(), SWT.PUSH);
   if ("path".equals(prop.getType())) { // $NON-NLS-1$
     addPathButton.setText(HibernateConsoleMessages.AddPropertyDialog_add_path);
   } else {
     addPathButton.setText(HibernateConsoleMessages.AddPropertyDialog_browse);
   }
   addPathButton.setLayoutData(new GridData(GridData.END));
   addPathButton.addSelectionListener(listener);
   value.getParent().layout();
 }
  void getEnteredValues() {
    if (propertyCombo == null) {
      propertyName = null;
    } else {
      IStructuredSelection selection = (IStructuredSelection) propertyCombo.getSelection();
      if (selection.isEmpty()) {
        propertyName = propertyCombo.getCombo().getText();
      } else {
        ExporterProperty p = (ExporterProperty) selection.getFirstElement();
        propertyName = p.getName();
      }
    }

    if (value != null) {
      if (value instanceof Text) {
        propertyValue = ((Text) value).getText();
      } else if (value instanceof Combo) {
        propertyValue = ((Combo) value).getText();
      }
    } else {
      propertyValue = null;
    }
  }