mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SelectProjectTemplateSettings must use own storage, disable roaming
This commit is contained in:
@@ -23,8 +23,13 @@ import org.jetbrains.annotations.Nullable;
|
||||
* @author Dmitry Avdeev
|
||||
* Date: 10/9/12
|
||||
*/
|
||||
@State(name = "SelectProjectTemplateSettings", storages = {@Storage(file = StoragePathMacros.APP_CONFIG + "/other.xml")})
|
||||
@State(
|
||||
name = "SelectProjectTemplateSettings",
|
||||
storages = @Storage(file = StoragePathMacros.APP_CONFIG + "/projectSelectTemplate.xml", roamingType = RoamingType.DISABLED)
|
||||
)
|
||||
public class SelectTemplateSettings implements PersistentStateComponent<SelectTemplateSettings> {
|
||||
public boolean EXPERT_MODE = false;
|
||||
public String LAST_TEMPLATE = null;
|
||||
|
||||
public static SelectTemplateSettings getInstance() {
|
||||
return ServiceManager.getService(SelectTemplateSettings.class);
|
||||
@@ -61,7 +66,4 @@ public class SelectTemplateSettings implements PersistentStateComponent<SelectTe
|
||||
EXPERT_MODE = state.EXPERT_MODE;
|
||||
LAST_TEMPLATE = state.LAST_TEMPLATE;
|
||||
}
|
||||
|
||||
public boolean EXPERT_MODE = false;
|
||||
public String LAST_TEMPLATE = null;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ import java.util.*;
|
||||
name = "TemplateSettings",
|
||||
storages = {
|
||||
@Storage(file = StoragePathMacros.APP_CONFIG + "/other.xml"),
|
||||
@Storage(file = StoragePathMacros.APP_CONFIG + "/template.settings.xml")
|
||||
@Storage(file = StoragePathMacros.APP_CONFIG + "/templates.xml")
|
||||
},
|
||||
storageChooser = LastStorageChooserForWrite.class
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user