* @throws KeyStoreException
*/
private boolean enablePasswordsKeystore() throws KeyStoreException
{
// Asking the user for a password
SetupPasswordDialog setupPasswordDialog = new SetupPasswordDialog(
enableKeystoreCheckbox.getShell(),
Messages.getString( "PasswordsKeystorePreferencePage.SetupMasterPassword" ), //$NON-NLS-1$
Messages.getString( "PasswordsKeystorePreferencePage.PleaseEnterMasterPasswordToSecurePasswordsKeystore" ), //$NON-NLS-1$
null );
if ( setupPasswordDialog.open() == SetupPasswordDialog.OK )
{
// Getting the master password
String masterPassword = setupPasswordDialog.getPassword();
// Loading the keystore
passwordsKeyStoreManager.load( masterPassword );
// Storing each connection password in the keystore