Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » No mouseListener in SWT Browser
No mouseListener in SWT Browser [message #461706] Tue, 27 September 2005 18:08 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: July 2009
Junior Member
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 14:17 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
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.
>
>
>
>
Re: No mouseListener in SWT Browser [message #461728 is a reply to message #461725] Wed, 28 September 2005 17:18 Go to previous message
No real name is currently offline No real nameFriend
Messages: 2
Registered: July 2009
Junior Member
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
Previous Topic:SWT.DOUBLE_BUFFERED and SWT.NO_BACKGROUND
Next Topic:Scrollable Form not scrollable
Goto Forum:
  


Current Time: Fri Sep 20 09:56:25 GMT 2024

Powered by FUDForum. Page generated in 0.04431 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top