|How to load custom perspective from XML Memento [message #651694]
||Tue, 01 February 2011 05:22
Registered: February 2011
I'm new to coding with the RCP Eclipse Framework.
I discovered some problems when trying to load a perspective stored in advance in a XMLMemento file.
I wrote a procedure to store a customized perspective w/ all included views in a given .xml file.
Furthermore I'd like to restore this saved perspective for example on another workstation.
My procedure loads the saved XMLMemento from the xml file by calling the function createReadRoot(reader) from the XMLMemento class.
As far as I can tell this is working correctly since I can access the elements within the xml file (e.g. the descriptor or view tags).
Then I tried to restore the perspective by creating a new instance of it and calling the restoreState(XMLMemento) function. Afterwards I tried to add the just created perpective to the perspective registry and load it over the load perspective dialog provided from the RCP Framework (Menubar->Window->Perspective->Other...).
And now my problem:
The perspective is not being displayed. Something happens within my application and the current perspective changes but it is not my saved perspective which is being displayed.
Is there a proper way to load such a stored perspective from an XMLMemento file?
Thanks in advance for your help
Powered by FUDForum
. Page generated in 0.01609 seconds