Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » MRU file size
MRU file size [message #333731] Tue, 30 December 2008 09:40 Go to next message
Anand Kumar Gupta is currently offline Anand Kumar GuptaFriend
Messages: 14
Registered: July 2009
Junior Member
I have implemented my own preference page and I am not displaying the
default preference-page items of eclipse.
In the Eclipse preference page under General -> Editors -> "Size of
recently opened files list" is there.
I want to add the above "Size of recently opened files list" in my
preference page.
Please tell me how would I implement this.
Re: MRU file size [message #333744 is a reply to message #333731] Wed, 31 December 2008 10:55 Go to previous message
Anand Kumar Gupta is currently offline Anand Kumar GuptaFriend
Messages: 14
Registered: July 2009
Junior Member
I got the solution :


1. This will give the currently set size of most recently used files---->

int i =
WorkbenchPlugin.getDefault().getPreferenceStore().getInt(IPr eferenceConstants.RECENT_FILES);


This will set size of most recently used files------>

2.
WorkbenchPlugin.getDefault().getPreferenceStore().setValue(I PreferenceConstants.RECENT_FILES,
10);

Here 10 is most recently used files size
u can vary it yr own.........
Previous Topic:Running Update Manager from Command Prompt
Next Topic:Eclipse Proxy Settings Issue
Goto Forum:
  


Current Time: Fri Aug 16 16:19:44 GMT 2024

Powered by FUDForum. Page generated in 0.03941 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top