Bug 38941 - [Wizards] New > Other... > File does not know the current package of the Types view
Summary: [Wizards] New > Other... > File does not know the current package of the Typ...
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-16 07:46 EDT by Simon Tardell CLA
Modified: 2006-06-22 08:35 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Tardell CLA 2003-06-16 07:46:58 EDT
In the Types view, the New > Other... > File wizard doesn't have current 
package filled in if nothing is selected in the Types view.
Comment 1 Dirk Baeumer CLA 2003-06-16 08:16:31 EDT
The wizard is provided by platform UI. They should apapt the selection to 
IResource and take the parent of the IResource in this case.
Comment 2 Debbie Wilson CLA 2003-06-16 12:02:33 EDT
Simon,  I'm not sure I understand what I should/should not be seeing.  Can you 
be really specific?  For example, 
- build I20030611
- open Types view
- make sure nothing is selected in Package Explorer view (deselect current 
Java file)
- in the Types view right click
- New->Other...->Simple File and then click Next button

Is this where you are expecting the parent folder to be filled in?
Comment 3 Simon Tardell CLA 2003-06-16 18:23:27 EDT
3.0M-1

Make sure nothing is selected in the Types view, use the context menu in the 
Types view to invoke New > Other... > Simple > File. The parent folder should 
be filled in, but is not.
Comment 4 Dirk Baeumer CLA 2003-06-19 04:12:18 EDT
The New > Otrher > File wizard is provided by platform UI, so there is little 
JDT/UI can do right now to fix the problem. 

One idea is that the wizard takes the selection provider of the types view and 
checks if it is a IInputProvider (which is the case for the types view). On an 
empty selection the view could take the input as a parent folder.

Moving back to Platform UI.
Comment 5 Simon Tardell CLA 2003-06-22 06:19:21 EDT
Bonus question:

With the Types view having focus and no Type being selected, the selection is 
effectively the containing package, shouldn't the semantics of "New  > 
Other... > File" be "create a new file in this package"? So why can you 
navigate *out* of this package in the wizard? If you want to create a file in 
another package you should first select that other package in the Packages 
view and then invoke "New  > Other... > File". The current behaviour is like 
sitting down in a restaurant and expect to be able to ask for food from other 
restaurants.
Comment 6 Tod Creasey CLA 2003-06-23 07:45:06 EDT
Any behaviour that would require you to close a wizard, reselect and then re-
open wouldbe very annoying - pre selecting the current workbench selection for 
the user is meant as a timesaver but not as the only way to select a parent.
Comment 7 Simon Tardell CLA 2003-06-23 07:51:23 EDT
Yes, but there is no such requirement. If you intend to create something in a 
package, the logical thing is to use a navigational view to navigate to that 
package first and then invoke an action on that package to create an instance 
of whatever (e.g. a file). Given that, the possibility to navigate away in the 
wizard is just confusing. 

If you at that point change your mind, you have to close the wizard, yes. But 
that is just like if you change your mind and decide to create a class instead 
of a file.
Comment 8 Tod Creasey CLA 2006-06-22 08:35:54 EDT
There are currently no plans to work on this feature