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))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
name=Template Plugin
|
||||
name=My Plugin
|
||||
applicationService=Application service
|
||||
projectService=Project service: {0}
|
||||
Reference in New Issue
Block a user