| Summary: | [Wizards] Interface for populating New wizard containers from selection | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Jay Cagle <jcagle> |
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | Tod_Creasey |
| Version: | 3.0 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Jay Cagle
The wizard takes its current selection from window.getSelectionService().getSelection(); you can always set the current resource selection in the selection service from your view before invoking the wizards and get this behaviour. That strikes me as a hack and not really workable. The selection is the custom node and not a resource. In order to change the selection I would need to intercept every action from the view. Many of the view's actions are via object contributions so there's no easy way of intercepting the action in order to change the selection. And doing so would mean that every action would now appear to be targetted at the resource, which I don't want in all cases. Unless I'm missing something, that doesn't seem like a workable solution. Check out NewContainerWizardPage.getInitialJavaElement() to see the contortions JDT goes through to get a container from the selection. This is not on the current 3.0 plan - please feel free to attach any suggested reworks. Also please note that we are trying our best not to break any existing APIs. There are currently no plans to work on this feature |