mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[devkit] IJPL-190262 Enable Compose UI Preview in new plugin projects
GitOrigin-RevId: 7435c62f4b889af18298dccdef6b25cd2905ca16
This commit is contained in:
committed by
intellij-monorepo-bot
parent
10e7d4988c
commit
fe0a033066
+2
@@ -12,6 +12,7 @@ import androidx.compose.ui.unit.dp
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.wm.ToolWindow
|
||||
import com.intellij.openapi.wm.ToolWindowFactory
|
||||
import org.jetbrains.compose.ui.tooling.preview.Preview
|
||||
import org.jetbrains.jewel.bridge.addComposeTab
|
||||
import org.jetbrains.jewel.ui.component.OutlinedButton
|
||||
import org.jetbrains.jewel.ui.component.Text
|
||||
@@ -32,6 +33,7 @@ class MyToolWindowFactory : ToolWindowFactory {
|
||||
}
|
||||
|
||||
@Composable
|
||||
@Preview
|
||||
private fun MyToolWindowContent() {
|
||||
val labelText = remember { mutableStateOf("The random number is: ?") }
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
<java.version>21</java.version>
|
||||
<kotlin.target>21</kotlin.target>
|
||||
<gradle.version>9.0.0</gradle.version>
|
||||
<kotlin.version>2.1.20</kotlin.version>
|
||||
<gradle.intellij.version>2.10.4</gradle.intellij.version>
|
||||
<kotlin.version>2.2.20</kotlin.version>
|
||||
<gradle.intellij.version>2.10.5</gradle.intellij.version>
|
||||
|
||||
<intellij.version>2025.2.4</intellij.version>
|
||||
<intellij.since.build>252.25557</intellij.since.build>
|
||||
<intellij.version>2025.3.1</intellij.version>
|
||||
<intellij.since.build>253</intellij.since.build>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
|
||||
+1
-1
@@ -242,7 +242,7 @@ class IdePluginModuleBuilderTest : LightJavaCodeInsightFixtureTestCase4(JAVA_21)
|
||||
<!-- A displayed Vendor name or Organization ID displayed on the Plugins Page. -->
|
||||
<vendor url="https://www.yourcompany.com">YourCompany</vendor>
|
||||
|
||||
<idea-version since-build="252.25557"/>
|
||||
<idea-version since-build="253"/>
|
||||
|
||||
<!-- Description of the plugin displayed on the Plugin Page and IDE Plugin Manager.
|
||||
Guidelines: https://plugins.jetbrains.com/docs/marketplace/best-practices-for-listing.html#plugin-description -->
|
||||
|
||||
Reference in New Issue
Block a user