[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Closing and reopening IWorkbenchPage's during runtime

Hello Pascal Rapicault,

Pascal Rapicault schrieb:
Given that the workbench stores its state (layout of views, windows in the instance area (Platform.*location* / osgi.instance.area)), what I advise you to do is:
In the run method of your program before doing anything prompt the user for login info, based on that info computes the location of where the instance area is for this user (this can be done behind the scene and the user does not need to know) and then starts the workbench (platformUI.runandDispatch()). given that the workbench will restore its state from the information read in the instance area, you will be fine.

Actually the RCP is already working in the way you describe, so I don't have any problems with situations during **primary RCP startup** and **final shutdown**.


Regrettably our requirements are that the RCP should allow a login-change during runtime, i.e. any time **after** the primary startup and login (Ekkehard recognized this use-case very well) and I would like to use the same kind of mechanism here to save and restore user information.

Do you think that I could do that using the current Eclipse RCP API?


Thank you very much,

Daniel