mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2026-03-02 03:39:24 +00:00
GitHub Actions - template cleanup workflow
This commit is contained in:
@@ -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
|
||||
@@ -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"))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user