mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
usage of other.xml is deprecated — custom file should be used instead
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user