Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Editor
Editor [message #444482] Thu, 16 February 2006 07:20 Go to next message
Eclipse UserFriend
I have a RCP application in 3.1.0.
When i close the application and open it again, i need the opened documents in the editor to come again.
The last worked Perspective is loaded since i use IWorkbenchConfigurer.setSaveAndRestore(true). But the document opened in the Editor has got closed and the application opens with an empty editor.

Thanks
Re: Editor [message #444613 is a reply to message #444482] Fri, 17 February 2006 15:27 Go to previous messageGo to next message
Eclipse UserFriend
Have you looked at the thread: "[HowTo] write an RCP editor whose EditorHistory will be saved"? I
had just the same problem, but was able to solve it by that method.

HTH,
Paul
Re: Editor [message #444622 is a reply to message #444482] Fri, 17 February 2006 16:36 Go to previous message
Eclipse UserFriend
Just make sure that your IEditorInput implementation can persist itself
by implementing IPersistableElement. You'll also need to define a
corresponding org.eclipse.ui.elementFactories extension to recreate the
input. See the Javadoc for IPersistableElement.

Nick

Karthikeyan J wrote:
> I have a RCP application in 3.1.0.
> When i close the application and open it again, i need the opened documents in the editor to come again.
> The last worked Perspective is loaded since i use IWorkbenchConfigurer.setSaveAndRestore(true). But the document opened in the Editor has got closed and the application opens with an empty editor.
>
> Thanks
Previous Topic:Getting transparent PNG images to work for welcome screen
Next Topic:Intro question - where are the links on the Eclipse Tutorials page defined
Goto Forum:
  


Current Time: Fri Nov 07 08:39:20 EST 2025

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

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

Back to the top