Bug 292576 - [JFace] Double click selection only works when Cancel button is added
Summary: [JFace] Double click selection only works when Cancel button is added
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 15:40 EDT by Zoltan Ujhelyi CLA
Modified: 2019-09-06 16:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltan Ujhelyi CLA 2009-10-16 15:40:49 EDT
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.4) Gecko/20091006 Firefox/3.5.4
Build Identifier: M20090917-0800

I experimented a bit with the JFace ListDialog, and I don't understand a decision made about it.

If the Cancel button is added, double clicking an element in the list selects it and closes the dialog, but without Cancel button it does not happen.

This might be the intended behaviour as the following Double click listener is added to the JFace list:
fTableViewer.addDoubleClickListener(new IDoubleClickListener() {
            public void doubleClick(DoubleClickEvent event) {
                if (fAddCancelButton) {
					okPressed();
				}
            }
        });

My question is the following: is this intended? If yes, it should be written somewhere in the Javadoc (typically at the method setAddCancelButton), if no, then it should be removed.

Thanks in advance.

Reproducible: Always
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:13:44 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.