Skip to content

Commit c8c44bf

Browse files
committed
[T3CMS] Disable roaming for project-level persistent state
1 parent 2c87b12 commit c8c44bf

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

typo3-cms/src/main/java/com/cedricziel/idea/typo3/TYPO3CMSProjectSettings.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
package com.cedricziel.idea.typo3;
22

33
import com.intellij.ide.actions.ShowSettingsUtilImpl;
4-
import com.intellij.openapi.components.PersistentStateComponent;
5-
import com.intellij.openapi.components.ServiceManager;
6-
import com.intellij.openapi.components.State;
7-
import com.intellij.openapi.components.Storage;
4+
import com.intellij.openapi.components.*;
85
import com.intellij.openapi.project.Project;
96
import com.intellij.psi.PsiElement;
107
import com.intellij.util.xmlb.XmlSerializerUtil;
@@ -14,7 +11,7 @@
1411
@State(
1512
name = "typo3cmsproject",
1613
storages = {
17-
@Storage("/typo3-cms.xml")
14+
@Storage(value = "/typo3-cms.xml", roamingType = RoamingType.DISABLED)
1815
}
1916
)
2017
public class TYPO3CMSProjectSettings implements PersistentStateComponent<TYPO3CMSProjectSettings> {

typo3-cms/src/main/java/com/cedricziel/idea/typo3/TYPO3CMSSettings.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
package com.cedricziel.idea.typo3;
22

3-
import com.intellij.openapi.components.PersistentStateComponent;
4-
import com.intellij.openapi.components.ServiceManager;
5-
import com.intellij.openapi.components.State;
6-
import com.intellij.openapi.components.Storage;
3+
import com.intellij.openapi.components.*;
74
import com.intellij.openapi.project.Project;
85
import org.jdom.Element;
96
import org.jetbrains.annotations.NotNull;
107
import org.jetbrains.annotations.Nullable;
118

129
@State(
1310
name = "TYPO3Settings",
14-
storages = {@Storage("$WORKSPACE_FILE$")}
11+
storages = {@Storage(value = "$WORKSPACE_FILE$", roamingType = RoamingType.DISABLED)}
1512
)
1613
public class TYPO3CMSSettings implements PersistentStateComponent<Element> {
1714
/**

0 commit comments

Comments
 (0)