Skip to content

Commit

Permalink
#163 | Enable plugin's settings sharing through Settings Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mlytvyn authored Jan 14, 2023
1 parent 050aaa4 commit b928aaa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions resources/META-INF/plugin-release-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
<li><i>Feature:</i> Added navigation to <code>items.xml</code> Type attributes from generated classes
(<a href="https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/120" target="_blank" rel="nofollow">#120</a>,
<a href="https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/71" target="_blank" rel="nofollow">#71</a>)</li>
<li><i>Feature:</i> Enabled [y] plugin settings sharing through <a href="https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html#IDE_settings_sync">Settings Sync</a> (<a href="https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/163" target="_blank" rel="nofollow">#163</a>)</li>
<li><i>Feature:</i> Added navigation to <code>items.xml</code> Enum values declaration from generated classes (<a href="https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/115" target="_blank" rel="nofollow">#115</a>)</li>
<li><i>Feature:</i> Added navigation to <code>beans.xml</code> Enum values declaration from generated classes (<a href="https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/111" target="_blank" rel="nofollow">#111</a>)</li>
<li><i>Feature:</i> Added navigation to <code>beans.xml</code> Bean property declaration from generated classes (<a href="https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/112" target="_blank" rel="nofollow">#112</a>)</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.SettingsCategory;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.util.xmlb.XmlSerializerUtil;
Expand All @@ -33,7 +34,9 @@
*
* @author Alexander Bartash <[email protected]>
*/
@State(name = "HybrisApplicationSettings", storages = {@Storage(STORAGE_HYBRIS_INTEGRATION_SETTINGS)})
@State(name = "[y] Global Settings",
category = SettingsCategory.PLUGINS,
storages = {@Storage(value = STORAGE_HYBRIS_INTEGRATION_SETTINGS)})
public class HybrisApplicationSettingsComponent implements PersistentStateComponent<HybrisApplicationSettings> {

protected final HybrisApplicationSettings hybrisApplicationSettings = new HybrisApplicationSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ package com.intellij.idea.plugin.hybris.toolwindow.system.bean.view

import com.intellij.idea.plugin.hybris.common.HybrisConstants
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.SettingsCategory
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.project.Project
import com.intellij.util.messages.MessageBus
import com.intellij.util.messages.Topic
import com.intellij.util.xmlb.XmlSerializerUtil

@State(name = "HybrisBSView")
@State(name = "[y] Bean System View settings", category = SettingsCategory.PLUGINS)
@Storage(HybrisConstants.STORAGE_HYBRIS_BS_VIEW)
class BSViewSettings(private val myProject: Project) : PersistentStateComponent<BSViewSettings.Settings> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ package com.intellij.idea.plugin.hybris.toolwindow.system.type.view

import com.intellij.idea.plugin.hybris.common.HybrisConstants
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.SettingsCategory
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.project.Project
import com.intellij.util.messages.MessageBus
import com.intellij.util.messages.Topic
import com.intellij.util.xmlb.XmlSerializerUtil

@State(name = "HybrisTSView")
@State(name = "[y] Type System View settings", category = SettingsCategory.PLUGINS)
@Storage(HybrisConstants.STORAGE_HYBRIS_TS_VIEW)
class TSViewSettings(myProject: Project) : PersistentStateComponent<TSViewSettings.Settings> {

Expand Down

0 comments on commit b928aaa

Please sign in to comment.