|Re: No mouseListener in SWT Browser [message #461725 is a reply to message #461706]
||Wed, 28 September 2005 14:17
| Grant Gayed
Registered: July 2009
Mouse events should be investigated in the 3.2 timeframe.
There's currently no content querying/manipulation api beyond
setText(String). The closest request that exists for something like this,
excluding the implementation of a full DOM component, is cut/copy/paste (
https://bugs.eclipse.org/bugs/show_bug.cgi?id=75815 ), which would work on
the current selection.
"Phil Somers" <email@example.com> wrote in message
> Although the SWT API includes mouseListener events for the SWT Browser,
> they do not work. That is the subject of Bug Report 49696, which seems to
> have been open for a very long time. This seems to be quite a significant
> bug and I am surprised it has not been fixed.
> But if I interpret the API correctly, there is an additional issue.
> There seems to be no method to capture text selected by such a mouse event
> anyway. For example, even if a doubleClick triggered a mouse event, there
> is no browser.getSelected() method to get the text selected by the double
> Do I understand this correctly, or am I missing something?
> .. Phil
> Here is the text of Bug Report 49696:
> When using the SWT Browser widget the mouse events (mouseDown, mouseUp,
> mouseDoubleClick) do not fire after adding a mouselistener to the Browser
> widget (browser.addMouseListener). This can be recreated by creating a
> browser widget object with the mouse listener and then clicking inside of
> browser window.
Powered by FUDForum
. Page generated in 0.01939 seconds