usage of other.xml is deprecated — custom file should be used instead

This commit is contained in:
Vladimir Krivosheev
2015-07-29 15:10:16 +02:00
parent fc28d88d9d
commit a6e9e0cf46
2 changed files with 8 additions and 7 deletions
@@ -78,10 +78,12 @@ import java.util.concurrent.atomic.AtomicReference;
*
* @author Mikhail Golubev
*/
@State(
name = "CertificateManager",
storages = @Storage(file = StoragePathMacros.APP_CONFIG + "/other.xml")
storages = {
@Storage(file = StoragePathMacros.APP_CONFIG + "/certificates.xml"),
@Storage(file = StoragePathMacros.APP_CONFIG + "/other.xml", deprecated = true)
}
)
public class CertificateManager implements PersistentStateComponent<CertificateManager.Config> {
@@ -25,12 +25,11 @@ import com.intellij.util.xmlb.XmlSerializerUtil;
@State(
name = "TaskSettings",
storages = {
@Storage(
file = StoragePathMacros.APP_CONFIG + "/other.xml"
)}
@Storage(file = StoragePathMacros.APP_CONFIG + "/tasks.xml"),
@Storage(file = StoragePathMacros.APP_CONFIG + "/other.xml", deprecated = true)
}
)
public class TaskSettings implements PersistentStateComponent<TaskSettings> {
public boolean ALWAYS_DISPLAY_COMBO = false;
public int CONNECTION_TIMEOUT = 5000;
@@ -47,4 +46,4 @@ public class TaskSettings implements PersistentStateComponent<TaskSettings> {
public void loadState(TaskSettings state) {
XmlSerializerUtil.copyBean(state, this);
}
}
}