I just added 2 perspectives in my RCP App. I can switch from one to another without problems.
But I didnt find a way to reset perspective, for example if I close a Part excidently I need to reset my perspective.
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().resetPerspective();
this didnt work cause I use E4.
-clearPersistedState -persistState false
is not a solution cause I need to reset without restart my App.
Thank you all for help