From f3de87392ac7912a3341b7f41fc6363653837005 Mon Sep 17 00:00:00 2001 From: DATBOI Date: Wed, 14 Oct 2020 05:47:56 -0500 Subject: [PATCH] Added project editor config --- .editorconfig | 8 ++++++ gradle.properties | 2 +- .../kotlin/io/unthrottled/amii/MyBundle.kt | 16 +++++------ .../listeners/MyProjectManagerListener.kt | 6 ++-- .../amii/services/MyApplicationService.kt | 6 ++-- .../amii/services/MyProjectService.kt | 6 ++-- src/main/resources/META-INF/plugin.xml | 28 +++++++++---------- src/main/resources/META-INF/pluginIcon.svg | 15 ++++++---- 8 files changed, 50 insertions(+), 37 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..cd9185db --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true +insert_final_newline = true +end_of_line = lf diff --git a/gradle.properties b/gradle.properties index 4ff28a08..1472c231 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,4 +12,4 @@ platformVersion = 2020.2 platformDownloadSources = true # Plugin Dependencies -> https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html # Example: platformPlugins = com.intellij.java,com.jetbrains.php:203.4449.22 -platformPlugins = \ No newline at end of file +platformPlugins = io.acari.DDLCTheme:11.0.0 \ No newline at end of file diff --git a/src/main/kotlin/io/unthrottled/amii/MyBundle.kt b/src/main/kotlin/io/unthrottled/amii/MyBundle.kt index 82bcd172..14a74d19 100644 --- a/src/main/kotlin/io/unthrottled/amii/MyBundle.kt +++ b/src/main/kotlin/io/unthrottled/amii/MyBundle.kt @@ -9,13 +9,13 @@ private const val BUNDLE = "messages.MyBundle" object MyBundle : AbstractBundle(BUNDLE) { - @Suppress("SpreadOperator") - @JvmStatic - fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = getMessage(key, *params) + @Suppress("SpreadOperator") + @JvmStatic + fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = getMessage(key, *params) - @Suppress("SpreadOperator") - @JvmStatic - fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = run { - message(key, *params) - } + @Suppress("SpreadOperator") + @JvmStatic + fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = run { + message(key, *params) + } } diff --git a/src/main/kotlin/io/unthrottled/amii/listeners/MyProjectManagerListener.kt b/src/main/kotlin/io/unthrottled/amii/listeners/MyProjectManagerListener.kt index 64263fb3..63a5b112 100644 --- a/src/main/kotlin/io/unthrottled/amii/listeners/MyProjectManagerListener.kt +++ b/src/main/kotlin/io/unthrottled/amii/listeners/MyProjectManagerListener.kt @@ -6,7 +6,7 @@ import io.unthrottled.amii.services.MyProjectService internal class MyProjectManagerListener : ProjectManagerListener { - override fun projectOpened(project: Project) { - project.getService(MyProjectService::class.java) - } + override fun projectOpened(project: Project) { + project.getService(MyProjectService::class.java) + } } diff --git a/src/main/kotlin/io/unthrottled/amii/services/MyApplicationService.kt b/src/main/kotlin/io/unthrottled/amii/services/MyApplicationService.kt index f19a9acb..332666da 100644 --- a/src/main/kotlin/io/unthrottled/amii/services/MyApplicationService.kt +++ b/src/main/kotlin/io/unthrottled/amii/services/MyApplicationService.kt @@ -4,7 +4,7 @@ import io.unthrottled.amii.MyBundle class MyApplicationService { - init { - println(MyBundle.message("applicationService")) - } + init { + println(MyBundle.message("applicationService")) + } } diff --git a/src/main/kotlin/io/unthrottled/amii/services/MyProjectService.kt b/src/main/kotlin/io/unthrottled/amii/services/MyProjectService.kt index cdc09383..96d2043f 100644 --- a/src/main/kotlin/io/unthrottled/amii/services/MyProjectService.kt +++ b/src/main/kotlin/io/unthrottled/amii/services/MyProjectService.kt @@ -5,7 +5,7 @@ import io.unthrottled.amii.MyBundle class MyProjectService(project: Project) { - init { - println(MyBundle.message("projectService", project.name)) - } + init { + println(MyBundle.message("projectService", project.name)) + } } diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index ba9f4f3e..b6aa0612 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -1,19 +1,19 @@ - io.unthrottled.amii - AMII - unthrottled + io.unthrottled.amii + AMII + unthrottled - - - com.intellij.modules.platform + + + com.intellij.modules.platform - - - - + + + + - - - + + + diff --git a/src/main/resources/META-INF/pluginIcon.svg b/src/main/resources/META-INF/pluginIcon.svg index 61329089..9450e370 100644 --- a/src/main/resources/META-INF/pluginIcon.svg +++ b/src/main/resources/META-INF/pluginIcon.svg @@ -44,15 +44,20 @@ - - - - + + + + - +