// Bind password
// Checking of the connection passwords keystore is enabled
if ( PasswordsKeyStoreManagerUtils.isPasswordsKeystoreEnabled() )
{
// Getting the password keystore manager
PasswordsKeyStoreManager passwordsKeyStoreManager = ConnectionCorePlugin.getDefault()
.getPasswordsKeyStoreManager();
// Checking if the keystore is loaded
if ( passwordsKeyStoreManager.isLoaded() )
{
passwordsKeyStoreManager.storeConnectionPassword( connectionParameter.getId(), "secret" ); //$NON-NLS-1$
}
else
{
// Asking the user to load the keystore
if ( PasswordsKeyStoreManagerUtils.askUserToLoadKeystore() )
{
passwordsKeyStoreManager.storeConnectionPassword( connectionParameter.getId(), "secret" ); //$NON-NLS-1$
}
}
}
else
{