| Summary: | Navigator: New does not give container when multi-selected (1GEAURV) | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Nick Edgar <n.a.edgar> |
| Component: | UI | Assignee: | Ryan Cooper <ryan_cooper> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | simon_arsenault |
| Version: | 2.0 | Keywords: | usability |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Windows 98 | ||
| Whiteboard: | |||
|
Description
Nick Edgar
PRODUCT VERSION: 110 JDK Pls verify in latest. Should also get a default container if current part is a file editor (has an IFileInput). Is this case currently handled? Please investigate and propose solution. The first problem has a simple solution (assuming we implement solution 2 suggested above). The second problem, of getting a default container, is not handled currently, and is more difficult. A simple solution invovles getting the active part from the workbench passed into the wizard page that has the container field. This would require making the getActivePart() method of WorkbenchPage public API (by adding it to IWorkbenchPage). A more meaningful solution would be to change the selection service (by modifying AbstractSelectionService.getSelection()) to return something other than null if the active part is an editor. This would be benficial for other operations as well (such as Export) when the active part is an editor. File and Folder wizard pages updated to use first element in selection for initial container candidate. Actions to launch File>New>Other dialog and to launch individual new wizards have been updated so if the active part is an editor, and the input is a IFile, a selection is created with that IFile and passed along. |