setTitle( "Create new connection" );
}
else if ( type == Type.EDIT )
{
setTitle( "Edit connection" );
Alias selectedAlias = Activator.getDefault().getConnectionsView().getSelectedAlias();
nameField.setEnabled( false );
autoConnectButton.setEnabled( false );
allowUpgrade.setSelection( Boolean.parseBoolean( selectedAlias
.getConfigurationByKey( GraphDatabaseSettings.allow_store_upgrade.name() ) ) );
nameField.setText( selectedAlias.getName() );
urlField.setStringValue( selectedAlias.getUri() );
userField.setText( ApplicationUtil.returnEmptyIfBlank( selectedAlias.getUserName() ) );
passwordField.setEchoChar( '*' );
passwordField.setText( ApplicationUtil.returnEmptyIfBlank( selectedAlias.getPassword() ) );
}
return contents;
}