Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Issue with selectionListener and doubleClickListener both together
Issue with selectionListener and doubleClickListener both together [message #328942] Sat, 07 June 2008 09:20 Go to next message
Rahul Kamdar is currently offline Rahul KamdarFriend
Messages: 63
Registered: July 2009
Member
Hi,

I have a selectionListener and a doubleClickListener on my viewer tied to
the Project Explorer view. The reason I need this is that I need to do a
couple of things if the user has selected a resource and do a few more
things if he has double-clicked on it (including on folders, so didn't use
just the OpenListener). For this I added a selectionListener and a
double-click listener on my viewer. Now the problem is, very rarely does the
double-click listener get called. More often that not, even if I
double-click on the resource, the selectionChanged method of
selectionListener is called. I also tried adding a mouseListener on the
viewer.getControl. But even in this case, mostly the mouseDown only gets
called and not mouseDoubleClick. Is there any alternative in SWT/Eclipse
which could be analogous to the AWT MouseEvent getClickCount?

Any help would be really appreciated.

Thanks,
Rahul
Re: Issue with selectionListener and doubleClickListener both together [message #329059 is a reply to message #328942] Wed, 11 June 2008 14:51 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Rahul Kamdar wrote:
> Hi,
>
> I have a selectionListener and a doubleClickListener on my viewer tied to
> the Project Explorer view. The reason I need this is that I need to do a
> couple of things if the user has selected a resource and do a few more
> things if he has double-clicked on it (including on folders, so didn't use
> just the OpenListener). For this I added a selectionListener and a
> double-click listener on my viewer. Now the problem is, very rarely does the
> double-click listener get called. More often that not, even if I
> double-click on the resource, the selectionChanged method of
> selectionListener is called. I also tried adding a mouseListener on the
> viewer.getControl. But even in this case, mostly the mouseDown only gets
> called and not mouseDoubleClick. Is there any alternative in SWT/Eclipse
> which could be analogous to the AWT MouseEvent getClickCount?
>
You should file a bug report.

Dani
> Any help would be really appreciated.
>
> Thanks,
> Rahul
>
>
>
Previous Topic:How to programmatically find a list of source plug-ins?
Next Topic:Listeners
Goto Forum:
  


Current Time: Wed Jul 17 19:49:43 GMT 2024

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

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

Back to the top