mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GUI-67 Can't record actions in mocha run tool window
Editor can be inside toolwindow so its priority should be higher
This commit is contained in:
+2
-1
@@ -428,7 +428,7 @@ class ProjectViewGenerator : LocalContextCodeGenerator<JPanel>() {
|
||||
|
||||
class ToolWindowGenerator : LocalContextCodeGenerator<Component>() {
|
||||
|
||||
override fun priority() = 1
|
||||
override fun priority() = 0
|
||||
|
||||
private fun Component.containsLocationOnScreen(locationOnScreen: Point): Boolean {
|
||||
val rectangle = this.bounds
|
||||
@@ -551,6 +551,7 @@ class MessageGenerator : LocalContextCodeGenerator<JDialog>() {
|
||||
}
|
||||
|
||||
class EditorGenerator : LocalContextCodeGenerator<EditorComponentImpl>() {
|
||||
override fun priority() = 3
|
||||
|
||||
override fun acceptor(): (Component) -> Boolean = { component -> component is EditorComponentImpl }
|
||||
override fun generate(cmp: EditorComponentImpl) = "editor {"
|
||||
|
||||
Reference in New Issue
Block a user