Markus Fung
12/24/2023, 3:40 AMseb
12/24/2023, 10:11 AMMarkus Fung
12/24/2023, 1:45 PMHarish Ramanbhai Patel
03/05/2024, 1:48 PMclass CodeReplicatorToolWindow(toolWindow: ToolWindow) {
private val service = toolWindow.project.service<CodeReplicatorProjectService>()
@OptIn(ExperimentalJewelApi::class)
fun getContent() = JBPanel<JBPanel<*>>().apply {
// FIXME testing workarounds for SwingComposeBridge construction arg crash
GlobalScope.launch(Dispatchers.Main) {
// We need to make sure this is done before Compose is attached.
// The operation is idempotent, so we can safely do it every time.
enableNewSwingCompositing()
val composePenal = JewelComposePanel {
// Compose code ...
}
add(composePenal)
}
}
}
seb
03/05/2024, 3:09 PMseb
03/05/2024, 3:09 PMseb
03/05/2024, 3:11 PMHarish Ramanbhai Patel
03/05/2024, 3:11 PMseb
03/05/2024, 3:12 PMHarish Ramanbhai Patel
03/05/2024, 3:12 PMseb
03/05/2024, 3:14 PMseb
03/05/2024, 3:14 PM