how to I affect the viewparts name presented, until the view has been
loaded? The label gets restored from the workbench.xml settings, but I
like to affect this presented label dependent on an internal state.
Scenario: I have a connection manager that holds a state. The view might
trigger the connection manager changing its state. The state change is
reflected as viewparts partName change. After that I'm selecting another
view stacking in front of my view and restart the workbench. Now my
views gets not instantiated, since its not activated yet. But the views
name remains its last presented state.
Resetting the views name on dispose does not help either.
Paul Webster Messages: 6859 Registered: July 2009 Location: Ottawa
The view name is saved in
IViewReference, MultiStatus) which is called before the parts are close
I suspect part closed or perspective closed or window closed would
present the same problem, the view name has already been saved.
You could try adding a org.eclipse.ui.IWorkbenchListener that in the
preShutdown reset the partName of any instantiated views that you care
about ... but if another workbench listeners vetos the shutdown then you
would need to fix the part names.