| [news.eclipse.platform.rcp] Re: Closing and reopening IWorkbenchPage's during runtime |
Hello Pascal Rapicault,
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.
Do you think that I could do that using the current Eclipse RCP API?
Thank you very much,
Daniel