mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
credentialStoreCleared
This commit is contained in:
@@ -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
|
||||
|
||||
+11
@@ -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() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user