mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
introduce ToolbarUtils.createTargetComponent(JComponent, ..)
GitOrigin-RevId: b85a6a4287a043756fa8185b9adec7417da3d63f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
73fa59a5ab
commit
6a5fd79a31
@@ -44,6 +44,10 @@ object ToolbarUtils {
|
||||
return MyComponent(editor.contentComponent, dataProvider)
|
||||
}
|
||||
|
||||
fun createTargetComponent(component: JComponent, dataProvider: UiDataProvider): JComponent {
|
||||
return MyComponent(component, dataProvider)
|
||||
}
|
||||
|
||||
private class MyComponent(val base: JComponent,
|
||||
val provider: UiDataProvider
|
||||
) : JComponent(), UiDataProvider {
|
||||
|
||||
Reference in New Issue
Block a user