credentialStoreCleared

This commit is contained in:
Vladimir Krivosheev
2016-08-17 14:08:13 +02:00
parent ee546dd7c6
commit faf51cb036
3 changed files with 13 additions and 4 deletions
@@ -69,8 +69,4 @@ class PasswordSafeConfigurableUi : ConfigurableUi<PasswordSafeSettings> {
return ProviderType.MASTER_PASSWORD
}
}
}
interface PasswordSafeSettingsListener {
fun typeChanged(oldValue: PasswordSafeSettings.ProviderType, newValue: PasswordSafeSettings.ProviderType)
}
@@ -112,6 +112,8 @@ class PasswordSafeImpl(/* public - backward compatibility */val settings: Passwo
finally {
(currentProvider as? FileCredentialStore)?.let { it.clear() }
}
ApplicationManager.getApplication().messageBus.syncPublisher(PasswordSafeSettings.TOPIC).credentialStoreCleared()
}
// public - backward compatibility
@@ -0,0 +1,11 @@
package com.intellij.credentialStore;
import org.jetbrains.annotations.NotNull;
public interface PasswordSafeSettingsListener {
default void typeChanged(@NotNull PasswordSafeSettings.ProviderType oldValue, @NotNull PasswordSafeSettings.ProviderType newValue) {
}
default void credentialStoreCleared() {
}
}