private void initUI() {
   listener.setActive(false);
   String keyStorePath = info == null ? "" : info.getKeystoreLocation();
   keyStore.setStringValue(keyStorePath == null ? "" : keyStorePath);
   String storekeyValue = info == null ? "" : info.getKeystorePassword();
   storekey.setText(storekeyValue == null ? "" : storekeyValue);
   String aliasValue = info == null ? "" : info.getAlias();
   alias.setText(aliasValue == null ? "" : aliasValue);
   String passkeyValue = info == null ? "" : info.getKeyPassword();
   passkey.setText(passkeyValue == null ? "" : passkeyValue);
   listener.setActive(true);
 }
  public KeystoreCertificateInfoEditor(Composite parent, int style) {
    super(parent, style);

    keyStore =
        new FileFieldEditor("dummy.1", "Key&store", this) { // $NON-NLS-1$
          @Override
          protected boolean checkState() {
            clearErrorMessage();
            return true;
          }
        };

    storekeyLabel = new Label(this, SWT.PASSWORD);
    storekeyLabel.setText("&Keystore password");

    storekey = new Text(this, SWT.BORDER | SWT.SINGLE);
    storekeyDec = new PasswordTextFieldDecorator(storekey);
    GridData storekeyData = new GridData(GridData.FILL_HORIZONTAL);
    storekeyData.horizontalSpan = 2;
    storekey.setLayoutData(storekeyData);

    aliasLabel = new Label(this, SWT.NONE);
    aliasLabel.setText("Key &Alias");

    alias = new Text(this, SWT.BORDER | SWT.SINGLE);
    GridData aliasData = new GridData(GridData.FILL_HORIZONTAL);
    aliasData.horizontalSpan = 2;
    alias.setLayoutData(aliasData);

    passkeyLabel = new Label(this, SWT.NONE);
    passkeyLabel.setText("&Private key password");

    passkey = new Text(this, SWT.BORDER | SWT.SINGLE);
    passkeyDec = new PasswordTextFieldDecorator(passkey);
    GridData passkeyData = new GridData(GridData.FILL_HORIZONTAL);
    passkeyData.horizontalSpan = 2;
    passkey.setLayoutData(passkeyData);

    listener = new UpdateListener(this);
    listener.addTo(SWT.Modify, keyStore.getTextControl(this), storekey, alias, passkey);
  }