AndreVanDelft / scala

The SubScript extension to the Scala programming language
http://www.subscript-lang.org/
12 stars 1 forks source link

Swing scripts for mouse actions don't provide full information about the event #56

Open anatoliykmetyuk opened 9 years ago

anatoliykmetyuk commented 9 years ago

There is a bunch of Swing scripts that are supposed to wait for a mouse event to happen. They have signatures as follows:

mousePressed     (comp: Component, ?p : java.awt.Point)

So they just provide an information about the point where the click happened. But the mouse events generally carry much more information: for example, whether this action triggers a popup menu.

I propose to change ?p: java.awt.Point to correspondent events - ?e: MousePressed in case of the former example. This, however, may break the existing Swing applications, so it requires some work.

AndreVanDelft commented 9 years ago

I agree; let's do this in the near future.