aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2024-06-30 16:26:08 +0200
committerLaria Carolin Chabowski <laria@laria.me>2024-06-30 16:26:08 +0200
commita1a26a0742ea216ca9ac442b7819e33a9ca61218 (patch)
tree2144c2b9aeb9743782c84865301891d7520d3217 /src/main
parent505fc951cf224c0172120dd88d1136f03629abe9 (diff)
downloadidea_caseconv-0.8.1.tar.gz
idea_caseconv-0.8.1.tar.bz2
idea_caseconv-0.8.1.zip
Fix deprecations and plugin config errorsHEADv0.8.1master
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/laria/code/idea_caseconv/settings/Settings.java4
-rw-r--r--src/main/resources/META-INF/plugin.xml7
2 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/me/laria/code/idea_caseconv/settings/Settings.java b/src/main/java/me/laria/code/idea_caseconv/settings/Settings.java
index 28f15b1..74b9903 100644
--- a/src/main/java/me/laria/code/idea_caseconv/settings/Settings.java
+++ b/src/main/java/me/laria/code/idea_caseconv/settings/Settings.java
@@ -1,7 +1,7 @@
package me.laria.code.idea_caseconv.settings;
+import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.components.PersistentStateComponent;
-import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.util.xmlb.XmlSerializerUtil;
@@ -17,7 +17,7 @@ public class Settings implements PersistentStateComponent<Settings> {
public static Settings getInstance() {
- return ServiceManager.getService(Settings.class);
+ return ApplicationManager.getApplication().getService(Settings.class);
}
@Nullable
diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml
index e261956..9f0a560 100644
--- a/src/main/resources/META-INF/plugin.xml
+++ b/src/main/resources/META-INF/plugin.xml
@@ -1,7 +1,7 @@
<idea-plugin>
<id>me.laria.code.idea_caseconv</id>
<name>Case Conversion</name>
- <version>0.8.0</version>
+ <version>0.8.1</version>
<vendor email="laria@laria.me" url="https://code.laria.me">Laria Chabowski</vendor>
<description><![CDATA[<html>
@@ -40,6 +40,9 @@
<change-notes><![CDATA[<html>
<dl>
+ <dt>Version 0.8.1</dt>
+ <dd>Replace usages of deprecated ServiceManager methods</dd>
+
<dt>Version 0.8.0</dt>
<dd>Compatibility 241.*</dd>
@@ -64,7 +67,7 @@
</html>]]></change-notes>
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
- <idea-version since-build="232"/>
+ <idea-version since-build="223"/>
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
on how to target different products -->