Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » MRU file size
MRU file size [message #333731] Tue, 30 December 2008 04:40 Go to next message
Eclipse UserFriend
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 05:55 Go to previous message
Eclipse UserFriend
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 Jun 13 05:20:05 EDT 2025

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

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

Back to the top