Is there a way to programmatically reset perspective in Eclipse?
To reset in perspective use IWorkbenchPage#resetPerspective() . The method will reset the current perspective to the state that is defined in the corresponding perspective descriptor.
IWorkbenchPage#resetPerspective()
If you want to keep all your settings, just copy
.metadata / .plugins / org.eclipse.core.runtime / .settings
to the desired workspace directory