|
Re: No mouseListener in SWT Browser [message #461725 is a reply to message #461706] |
Wed, 28 September 2005 14:17 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
Hi Phil,
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.
Grant
"Phil Somers" <pwsomers@yahoo.ca> wrote in message
news:31b18b739846495db39c87f9f9a35f24$1@www.eclipse.org...
>
> 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
> click.
>
> Do I understand this correctly, or am I missing something?
>
> Thanks.
>
> .. 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
> the
> browser window.
>
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02549 seconds