GitHub Actions - template cleanup workflow

This commit is contained in:
Jakub Chrzanowski
2020-06-17 21:06:57 +02:00
parent 9cd83d4719
commit e4a1106495
14 changed files with 168 additions and 22 deletions

View File

@@ -5,9 +5,9 @@ import org.jetbrains.annotations.NonNls
import org.jetbrains.annotations.PropertyKey
@NonNls
private const val BUNDLE = "messages.TemplateBundle"
private const val BUNDLE = "messages.MyBundle"
object TemplateBundle : DynamicBundle(BUNDLE) {
object MyBundle : DynamicBundle(BUNDLE) {
@Suppress("SpreadOperator")
@JvmStatic

View File

@@ -1,10 +1,10 @@
package org.jetbrains.plugins.template.services
import org.jetbrains.plugins.template.TemplateBundle
import org.jetbrains.plugins.template.MyBundle
class MyApplicationService {
init {
println(TemplateBundle.message("applicationService"))
println(MyBundle.message("applicationService"))
}
}

View File

@@ -1,11 +1,11 @@
package org.jetbrains.plugins.template.services
import com.intellij.openapi.project.Project
import org.jetbrains.plugins.template.TemplateBundle
import org.jetbrains.plugins.template.MyBundle
class MyProjectService(project: Project) {
init {
println(TemplateBundle.message("projectService", project.name))
println(MyBundle.message("projectService", project.name))
}
}

View File

@@ -2,7 +2,6 @@
<id>org.jetbrains.plugins.template</id>
<name>Template</name>
<vendor>JetBrains</vendor>
<description>Demonstrates various aspects of interacting with project model</description>
<!-- Product and plugin compatibility requirements -->
<!-- https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html -->

View File

@@ -1,3 +1,3 @@
name=Template Plugin
name=My Plugin
applicationService=Application service
projectService=Project service: {0}