|
|
|
Re: How to perform an action after eclipse plugin is opened [message #899101 is a reply to message #899094] |
Mon, 30 July 2012 14:44 |
|
Is this for a new workbench instance or a reloaded instance?
If you are reloading a workbench instance, most of that should be taken care of. Especially any tree viewers, the content providers should be able to provide the content. Just make sure you enable saving the workbench state. It would be something like workbench.setSaveState(true). (That's not it but it is something along those lines).
Otherwise if it is for the case of a new workbench instance, just set the default perspective to your desired perspective.
So the primary issue I would focus on is what perspective is initially displayed. Everything else (views / viewers / commands / etc.. ), should be independent of the workbench state and react to the perspective.
|
|
|
|
Re: How to perform an action after eclipse plugin is opened [message #899364 is a reply to message #899323] |
Tue, 31 July 2012 14:50 |
|
Not sure what you mean by open projects. Typically, the user is responsible for creating/importing new projects into the workspace, or the workspace loads with the previous list of projects.
If you want a situation where projects are opened and closed depending upon the perspective, then what comes to mind is some type of processing in the PerspectiveFactory. However, IMHO I am not comfortable with that at all.
Remember that views and editors are shared. When you switch perspectives all you are really doing is changing what views are immediately visible. (Nothing is actually closed)
So I guess consider carefully the use of a open/closeProject().
JD
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04303 seconds