Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Get list of Recently Opened File & display it in a dialog
Get list of Recently Opened File & display it in a dialog [message #775309] Thu, 05 January 2012 13:46 Go to next message
Ashutosh Verma is currently offline Ashutosh Verma
Messages: 3
Registered: December 2011
Junior Member
I am creating an RCP application where I need to read the list of Recently Opened Files and display it in a dialog.

I have tried using
<code>
IContributionItem reEdit = ContributionItemFactory.REOPEN_EDITORS.create(window);
</code>

but the history attribute is private so not accessible.

However, when my RCP app start, it displays empty list (in debugging). How to make it to be saved in the preferences to be retrieved after restart as well.

Any pointers on how it can be done?
Re: Get list of Recently Opened File & display it in a dialog [message #775692 is a reply to message #775309] Fri, 06 January 2012 09:27 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You must have your workbench configurer save and restore set to true to persist state between sessions.

PW


Previous Topic:Scrolledcomposite eating up more than half of the inner composite.
Next Topic:Dynamically add/remove columns from a table?
Goto Forum:
  


Current Time: Thu Aug 28 01:27:05 EDT 2014

Powered by FUDForum. Page generated in 0.02113 seconds