Bug 490100 - IWorkingSetManager should allow ordering working sets
Summary: IWorkingSetManager should allow ordering working sets
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 4.5.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-21 11:17 EDT by Marvin Fröhlich CLA
Modified: 2020-07-08 02:38 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 Marvin Fröhlich CLA 2016-03-21 11:17:16 EDT
I'm searching for a way to get project order according to working sets. I have a single-containment for my projects over all working sets.

IWorkingSetManager wsm = PlatformUI.getWorkbench().getWorkingSetManager();
IWorkingSet[] wss = wsm.getWorkingSets();

wss contains all WorkingSets in alphabetical order losing the custom defined order.

I also tried to access package explorer as the order may be defined in there. But it's access restricted.

Is this really a bug? Or can I access the order in a different way?
Comment 1 Marvin Fröhlich CLA 2016-04-06 11:14:43 EDT
Do you need more info for this bug?
Comment 2 Marvin Fröhlich CLA 2016-04-25 04:19:49 EDT
I'm sorry to insist here. Is it even supposed to work this way? Is there another way to access the working set order?
Comment 3 Brian de Alwis CLA 2016-04-25 09:55:37 EDT
There is no order defined by IWorkingSetManager.  Even if there seems to be an order, the UI components decide how to present the contents of working sets (e.g., using the working set name, or via working set type).  The working set infrastructure has no control over how the UI chooses to represent them.
Comment 4 Brian de Alwis CLA 2016-04-25 09:58:37 EDT
I can see how this would be useful though.  I'll re-open and perhaps it something we can look at for Oxygen.  At worst, the IWorkingSetManager could offer the WS in an order, and honouring that order or not can be left to the consumers.
Comment 5 Marvin Fröhlich CLA 2016-04-26 02:57:32 EDT
The package explorer seems to define an order over the working sets. And the manager looks pretty "integrated". Is there a programmatic way to read this order from a plugin?

Apart from that I agree, with comment #4. Thanks.
Comment 6 Eclipse Genie CLA 2020-07-07 10:36:37 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Marvin Fröhlich CLA 2020-07-08 02:38:31 EDT
This extension is still pending and desired.