Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How do I save editor state?
How do I save editor state? [message #464891] Sun, 18 March 2007 23:34 Go to next message
Eclipse UserFriend
Originally posted by: bdberry.us.ibm.com

I have already created EditorInput that implements IPersistableElement
which lets the editor input itself get returned from the EditorInput
getPersistable() method. I also have an ElementFactory extension that
should be able to rebuild my EditorInput from the memento. the problem
is - at no point is the saveState() method being called from my editor
input. Any ideas?

This used to work in my previous Eclipse 3.2.1 env - now seems like it
does not function the same in 3.2.2 - am I forgetting something simple here?
Re: How do I save editor state? [message #464892 is a reply to message #464891] Mon, 19 March 2007 07:47 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Brian Berry wrote:

> I have already created EditorInput that implements IPersistableElement
> which lets the editor input itself get returned from the EditorInput
> getPersistable() method. I also have an ElementFactory extension that
> should be able to rebuild my EditorInput from the memento. the
> problem is - at no point is the saveState() method being called from
> my editor input. Any ideas?

I suggest you debug into EditorManager.saveEditorState

Dani

>
> This used to work in my previous Eclipse 3.2.1 env - now seems like it
> does not function the same in 3.2.2 - am I forgetting something simple
> here?
Re: How do I save editor state? [message #464904 is a reply to message #464892] Mon, 19 March 2007 21:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bdberry.us.ibm.com

Daniel Megert wrote:
> Brian Berry wrote:
>
>> I have already created EditorInput that implements IPersistableElement
>> which lets the editor input itself get returned from the EditorInput
>> getPersistable() method. I also have an ElementFactory extension that
>> should be able to rebuild my EditorInput from the memento. the
>> problem is - at no point is the saveState() method being called from
>> my editor input. Any ideas?
>
> I suggest you debug into EditorManager.saveEditorState
>
> Dani
>
>>
>> This used to work in my previous Eclipse 3.2.1 env - now seems like it
>> does not function the same in 3.2.2 - am I forgetting something simple
>> here?
that method never gets called. Am I supposed to be forcing the editor
state save?
Re: How do I save editor state? [message #465046 is a reply to message #464904] Thu, 22 March 2007 11:11 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Brian Berry wrote:

> Daniel Megert wrote:
>
>> Brian Berry wrote:
>>
>>> I have already created EditorInput that implements
>>> IPersistableElement which lets the editor input itself get returned
>>> from the EditorInput getPersistable() method. I also have an
>>> ElementFactory extension that should be able to rebuild my
>>> EditorInput from the memento. the problem is - at no point is the
>>> saveState() method being called from my editor input. Any ideas?
>>
>>
>> I suggest you debug into EditorManager.saveEditorState
>>
>> Dani
>>
>>>
>>> This used to work in my previous Eclipse 3.2.1 env - now seems like
>>> it does not function the same in 3.2.2 - am I forgetting something
>>> simple here?
>>
> that method never gets called.

Try EditorManager.saveState or WorkbenchPage.saveState.

> Am I supposed to be forcing the editor state save?

No.

Dani
Previous Topic:EFS question
Next Topic:disable action
Goto Forum:
  


Current Time: Sun Sep 08 03:25:26 GMT 2024

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

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

Back to the top