Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 95100

Summary: [Wizards] Double click on New>Untitled Text File should create it
Product: [Eclipse Project] Platform Reporter: Tom Hofmann <eclipse>
Component: UIAssignee: Kim Horne <eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: michaelvanmeekeren, Tod_Creasey
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Patch against org.eclipse.ui.workbench none

Description Tom Hofmann CLA 2005-05-13 06:32:22 EDT
I20050512(-2036 or so)

- File>New>Other (Ctrl+N)
- double click on Simple>Untitled text file

> expected: a new file is created
< actual: nothing happens

note: pressing return works as expected
Comment 1 Kim Horne CLA 2005-05-15 11:39:24 EDT
To make this work properly will require new API.   There is currently no way from within a wizard to 
explicitly closed it's IWizardContainer.  I can cast the container to a WizardDialog and call close and this 
should perform as expected, but it's a hack - close has the side effect of calling "cancel" on the wizard.  In 
the case of the New wizard this is a no-op, but this may change in the future.

I say we go with the hack for 3.1 and investigate introducing methods on IWizardContainer(3) to grant the 
ability to force close or abort on the container for 3.2.
Comment 2 Kim Horne CLA 2005-05-15 11:40:07 EDT
Created attachment 21175 [details]
Patch against org.eclipse.ui.workbench

Patch that will fix this for 3.1
Comment 3 Kim Horne CLA 2005-05-15 11:48:27 EDT
Incidentally, getting the fix for this to work uncovered a bug in NewWizardNewPage - we had two 
doubleclick listeners on the tree viewer that were doing similar work and could've been responsible for 
some flicker in the wizard.  Even if we don't do this fix we should probably address that for 3.1.
Comment 4 Kim Horne CLA 2005-05-16 09:01:10 EDT
Patch submitted to head.  I've entered bug 95348 to track the possible need for new API.
Comment 5 Kim Horne CLA 2005-05-27 09:13:40 EDT
Verified in I20050527-0010