Issue with selectionListener and doubleClickListener both together [message #328942] |
Sat, 07 June 2008 05:20  |
Eclipse User |
|
|
|
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 10:51  |
Eclipse User |
|
|
|
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
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04727 seconds