Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318914

Summary: [WorkingSets] Provide a preference to set size of the list of most recently used working sets
Product: [Eclipse Project] Platform Reporter: Hitesh <hsoliwal>
Component: UIAssignee: Oleg Besedin <ob1.eclipse>
Status: VERIFIED FIXED QA Contact: Oleg Besedin <ob1.eclipse>
Severity: enhancement    
Priority: P3 CC: bokowski, daniel_megert, mukund, ob1.eclipse, pwebster, raji, remy.suen
Version: 3.6Keywords: api
Target Milestone: 3.7 M6   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch V01
none
Patch
none
Patch none

Description Hitesh CLA 2010-07-05 11:51:06 EDT
Created attachment 173449 [details]
Patch V01

Provide a preference to set the size of the list of most recently used working sets as . Attached is a potential patch.
Comment 1 Oleg Besedin CLA 2011-03-02 16:49:39 EST
Created attachment 190210 [details]
Patch

The patch adds the following APIs:
IWorkingSetManager#
	public void setRecentWorkingSetsLength(int length);
	public int getRecentWorkingSetsLength();

(The IWorkingSetManager is marked as "no implement" and got a new method last time in 3.4.)

The patch exposes new MRU preference in the General -> Workspace preference page.

The patch adds JUnit IWorkingSetManagerTestâ„–testRecentWorkingSetsLength().

If anybody want to review the patch, please do it soon so we can make the change in time for M6.
Comment 2 Dani Megert CLA 2011-03-04 07:55:53 EST
Oleg, I think the bug was wrongly filed by Hitesh. The client only requested API to change the size/limit of recently used working sets. Having said that, if Platform UI thinks it makes sense to also add UI for that, OK. However, the 'Workspace' page is wrong as that page should only contain workspace and not workbench (i.e. UI) related things.

"Show up to this number of recent working sets:" sounds a bit sloppy to me - but I'm not a native speaker.
Comment 3 Oleg Besedin CLA 2011-03-04 14:36:13 EST
Created attachment 190434 [details]
Patch

Updated patch:
- removed UI preferences page
- changed MRU preference to be shown via IWorkbenchPreferenceConstants.RECENTLY_USED_WORKINGSETS_SIZE
Comment 4 Oleg Besedin CLA 2011-03-04 14:40:45 EST
Patch applied to CVS Head. Thanks to all people who helped!
Comment 5 Oleg Besedin CLA 2011-03-08 10:04:28 EST
Verified that new IWorkingSetManager APIs are present and functioning in the I20110307-2110.
Comment 6 Dani Megert CLA 2011-10-06 05:27:57 EDT
Oleg, I reopen this bug as it is not included in R4_development. Not sure whether this is not needed in 4.x or whether this just got lost.
Comment 7 Dani Megert CLA 2011-10-06 05:28:51 EDT
(In reply to comment #6)
> Oleg, I reopen this bug as it is not included in R4_development. Not sure
> whether this is not needed in 4.x or whether this just got lost.

Sorry, I meant to reopen another bug.