private void initializeValues(){
  IDialogSettings settings=getDialogSettings();
  if (settings != null) {
    String[] hostNames=settings.getArray(STORE_URL_ID);
    if (hostNames != null) {
      for (int i=0; i < hostNames.length; i++) {
        urlCombo.add(hostNames[i]);
      }
    }
    if (showCredentials) {
      String[] userNames=settings.getArray(STORE_USERNAME_ID);
      if (userNames != null) {
        for (int i=0; i < userNames.length; i++) {
          userCombo.add(userNames[i]);
        }
      }
    }
  }
  if (properties != null) {
    if (showCredentials) {
      String user=properties.getProperty("user");
      if (user != null) {
        userCombo.setText(user);
      }
      String password=properties.getProperty("password");
      if (password != null) {
        passwordText.setText(password);
      }
    }
    String host=properties.getProperty("url");
    if (host != null) {
      urlCombo.setText(host);
    }
  }
}

private void initializeValues ( ) { IDialogSettings settings = getDialogSettings ( ) ; if ( settings != null ) { String [ ] hostNames = settings . getArray ( STORE_URL_ID ) ; if ( hostNames != null ) { for ( int i = 0 ; i < hostNames . length ; i ++ ) { urlCombo . add ( hostNames [ i ] ) ; } } if ( showCredentials ) { String [ ] userNames = settings . getArray ( STORE_USERNAME_ID ) ; if ( userNames != null ) { for ( int i = 0 ; i < userNames . length ; i ++ ) { userCombo . add ( userNames [ i ] ) ; } } } } if ( properties != null ) { if ( showCredentials ) { String user = properties . getProperty ( "user" ) ; if ( user != null ) { userCombo . setText ( user ) ; } String password = properties . getProperty ( "password" ) ; if ( password != null ) { passwordText . setText ( password ) ; } } String host = properties . getProperty ( "url" ) ; if ( host != null ) { urlCombo . setText ( host ) ; } } }
initializes states of the controls .
