Skip to main content


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 18:46 Go to next message
Ashutosh Verma is currently offline Ashutosh VermaFriend
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 14:27 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
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: Sat Apr 20 04:05:09 GMT 2024

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

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

Back to the top