// null-out the current perspective name to force a reload
// otherwise, the loadPerspective() call will short-circuit since
// it'll detect that the requested perspective is already loaded.
setCurrentPerspectiveName(null);
DockingPort port = DockingManager.getRootDockingPort(w);
Perspective[] perspectives = getPerspectives();
for (int i = 0; i < perspectives.length; i++) {
String id = perspectives[i].getPersistentId();
if (!id.equals(EMPTY_PERSPECTIVE)) {
//TODO reset layout, maybe there is a better way