mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gui-test] rearrangement
This commit is contained in:
+6
-5
@@ -68,11 +68,12 @@ object EventDispatcher {
|
||||
|
||||
fun processMouseEvent(event: MouseEvent) {
|
||||
if (isMainFrame(event.component)) return
|
||||
if (event.id == MOUSE_CLICKED) processClick(event)
|
||||
if (event.id == MOUSE_DRAGGED) SelectionProcessor.processDragging(event)
|
||||
if (event.id == MOUSE_RELEASED) SelectionProcessor.stopDragging(event)
|
||||
if (event.component?.javaClass?.canonicalName == "javax.swing.Popup.HeavyWeightWindow"
|
||||
&& event.id == MOUSE_PRESSED) processClick(event) //clicks are consumed for popups, so let's process MOUSE_PRESSED event GUI-79
|
||||
when(event.id) {
|
||||
MOUSE_CLICKED -> { processClick(event) }
|
||||
MOUSE_DRAGGED -> { SelectionProcessor.processDragging(event) }
|
||||
MOUSE_RELEASED -> { SelectionProcessor.stopDragging(event) }
|
||||
MOUSE_PRESSED -> { if (event.component?.javaClass?.canonicalName == "javax.swing.Popup.HeavyWeightWindow") processClick(event) } //clicks are consumed for popups, so let's process MOUSE_PRESSED event GUI-79
|
||||
}
|
||||
}
|
||||
|
||||
private fun processClick(event: MouseEvent){
|
||||
|
||||
Reference in New Issue
Block a user