RCP and perspectives problem [message #210933] |
Sat, 13 March 2004 21:28 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: martin.javahispano.org
Hi friends.
I'm having a very annoying problem with Eclipse and perspectives in an
Rich Client Platform application. Probably the reason is the fault of
documentation so forgive me if the solution it's very obvious.
The problem is that I'm not able to remember perspectives between RCP
application execution. I have a program with two perspectives. When the
program start, the default perspective appears. Then I load the second
perspective and exit the program. Finally when I restart the application
only the default perspective is loaded.
I'm using the method setSaveAndRestore(true) . This seems to allow save of
perspective state (views for example) but doesn't serve to save the
different opened perspectives.
Do you know any solution ?
Note : I don't override getDefaultWindowInput() from WorkbenchAdvisor
class. I think that this can be the reason of not saving perspectives,
because when Eclipse base tries execute saveState method, input object is
null and so the process returns with a "cannot save input ..." message.
The problem is that I don't know whtat to return from
getDefaultWindowInput method.
Thanks for your help !
Martin.
|
|
|
Powered by
FUDForum. Page generated in 0.03562 seconds