You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
JetBrains_intellij-platform.../src/main/kotlin/org/jetbrains/plugins/template/services/MyProjectService.kt

20 lines
546 B

package org.jetbrains.plugins.template.services
import com.intellij.openapi.project.Project
import org.jetbrains.plugins.template.MyBundle
class MyProjectService(project: Project) {
init {
println(MyBundle.message("projectService", project.name))
System.getenv("CI")
?: TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.")
}
/**
* Chosen by fair dice roll, guaranteed to be random.
*/
fun getRandomNumber() = 4
}