No mouseListener in SWT Browser [message #461706] |
Tue, 27 September 2005 14:08  |
Eclipse User |
|
|
|
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.
|
|
|
Re: No mouseListener in SWT Browser [message #461725 is a reply to message #461706] |
Wed, 28 September 2005 10:17   |
Eclipse User |
|
|
|
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.
>
>
>
>
|
|
|
Re: No mouseListener in SWT Browser [message #461728 is a reply to message #461725] |
Wed, 28 September 2005 13:18  |
Eclipse User |
|
|
|
Hello Grant,
That is good news about mouse events. However, what would be the point
of implementing a mouse doubleClick event if there was no method to do
something with the doubleClicked target?
I notice that after highlighting with a double click, that a right
mouse click (or cntl^C) will copy and right-mouse-paste (or cntl^V) will
paste. So maybe not much would be required for a browser.getSelected()
method to be added.
Thanks.
... Phil
> 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
|
|
|
Powered by
FUDForum. Page generated in 0.10113 seconds