using IPersistableElement [message #462990] |
Fri, 02 February 2007 21:45 |
Eclipse User |
|
|
|
Originally posted by: tcmsimoes.criticalsoftware.com
I am having some problems using the IPersistableElement interface.
I am using it for one of my classes which i would to save its state after
the workbench shutdowns. I just implemented the interface in that class and
created an IElementFactory for it (and the correspondent extension point).
However the saveState, getFactoryID, createElement methods are never called.
What ami i missing? does the IPersistableElement interface only work for
editors or special page inputs that the workbench knows or do i need to
register my object somewhere for the workbench know that it is persistable?
Thanks
Tiago
|
|
|
|
Re: using IPersistableElement [message #463014 is a reply to message #462996] |
Sat, 03 February 2007 23:02 |
Eclipse User |
|
|
|
Originally posted by: tcmsimoes.criticalsoftware.com
Thanks Snjeza.
I see your point, however how can i get the memento from the workbench to
use for the IPersistableElement interface methods?
"Snjezana Peco" <snjeza.peco@gmail.com> wrote in message
news:eq0fp3$g0u$1@utils.eclipse.org...
> You have to call saveState after the workbench stops running (you can
> register the workbench listener, for instance) and restoreState when
> restoring your object.
>
> Snjeza
>
> Tiago Sim
|
|
|
|
Powered by
FUDForum. Page generated in 0.03804 seconds