Browse Source

Remove dead code.

pull/288/head 0.3.0-build141
Nikolay Igotti 4 years ago
parent
commit
b22a9947c2
  1. 6
      examples/intelliJPlugin/build.gradle.kts
  2. 6
      examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/ComposeDemoAction.kt

6
examples/intelliJPlugin/build.gradle.kts

@ -36,9 +36,3 @@ tasks.getByName<org.jetbrains.intellij.tasks.PatchPluginXmlTask>("patchPluginXml
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11" kotlinOptions.jvmTarget = "11"
} }
compose.desktop {
application {
mainClass = "com.jetbrains.compose.ComposeDemoActionKt"
}
}

6
examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/ComposeDemoAction.kt

@ -32,12 +32,6 @@ class ComposeDemoAction : DumbAwareAction() {
} }
override fun createCenterPanel(): JComponent { override fun createCenterPanel(): JComponent {
// //Kotlin UI DSL example
// return panel {
// row("Text:") {textField({"Type something"}, {}, 30)}
// row("Text:") {textField({"Type something"}, {}, 30)}
// row {checkBox("Fooo")}
// }
return ComposePanel().apply { return ComposePanel().apply {
setContent { setContent {
Button(onClick = { println("Hi") }) { Button(onClick = { println("Hi") }) {

Loading…
Cancel
Save