| Summary: | [WorkingSets] Expose the Components of an AggregateWorkingSet as API | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Michael D. Elder <mdelder> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Hitesh <hsoliwal> |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Michael D. Elder
The package explorer shouldn't be using internal classes ... whatever they have implemented should be implementable by you. What in particular do you want to do? The JDT Package Explorer uses their own class (org.eclipse.jdt.internal.ui.workingsets.WorkingSetModel) which is driven from their own dialog (the "Configure Working Set" dialog). When you select "Top Level Elements > Working Sets", the "Configure Working Set" dialog is popped, you can choose which working sets to display, and they populate their working set model, which they set as a root input. You cannot select the Window Working Set *AND* show Working Sets as a top level elements. You can re-select the same things chosen in the Window Working Set, but there is no synchronization between the two models. The JDT support was implemented before all of the great Window Working Set changes in 3.2. I wanted to integrate better with Window Working Sets and have less exposed UI, so I wanted a model where I could use the same "Select Working Set" dialog, and allow the user to toggle between "Working Sets" and "Projects" as top level elements. With access to the components of AggregateWorkingSet, I can do this seamlessly using official API. As it is now (in 3.2.1), I have to refer to the internal AggregateWorkingSet, and toggle the mode of the WorkingSetsContentProvider to show working sets or jump through to their components. Doing this though allows the Project Explorer to respond when a user changes the Working Set(s) for the Window Working Set. *** This bug has been marked as a duplicate of bug 217955 *** |