summaryrefslogtreecommitdiff
path: root/plugins/ShortcutPromoter/src/com/intellij/promoter/ShortcutPromoterManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ShortcutPromoter/src/com/intellij/promoter/ShortcutPromoterManager.java')
-rw-r--r--plugins/ShortcutPromoter/src/com/intellij/promoter/ShortcutPromoterManager.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/ShortcutPromoter/src/com/intellij/promoter/ShortcutPromoterManager.java b/plugins/ShortcutPromoter/src/com/intellij/promoter/ShortcutPromoterManager.java
index 227d96245080..3baafb1fe510 100644
--- a/plugins/ShortcutPromoter/src/com/intellij/promoter/ShortcutPromoterManager.java
+++ b/plugins/ShortcutPromoter/src/com/intellij/promoter/ShortcutPromoterManager.java
@@ -22,11 +22,7 @@ import java.util.LinkedHashMap;
*/
@State(
name = "ShortcutPromoterManager",
- roamingType = RoamingType.PER_PLATFORM,
- storages = {
- @Storage(
- file = StoragePathMacros.APP_CONFIG + "/promoter.xml"
- )}
+ storages = {@Storage(file = StoragePathMacros.APP_CONFIG + "/promoter.xml", roamingType = RoamingType.PER_PLATFORM)}
)
public class ShortcutPromoterManager implements ApplicationComponent, AnActionListener, ExportableApplicationComponent,
PersistentStateComponent<Element> {
@@ -97,10 +93,6 @@ public class ShortcutPromoterManager implements ApplicationComponent, AnActionLi
@Nullable
@Override
public Element getState() {
- if (myState.isEmpty()) {
- return null;
- }
-
final Element actions = new Element("actions");
for (String id : myState.keySet()) {
final Element action = new Element("action");