This feature provides commands related to closing views:
- Window > Close (last active) View (Control+Shit+V on windows and linux, Command+Shift+V on Mac) - This closes the last active view. You can invoke this command successively to close previously active views.
- Window > Close All Views in Tab - This closes the views in the tab of last active view.
- Window > Close Other Views - This closes the other views except of last active view.
- Window > Close All Views - As such this closes all the open views. If all the views are already closed it offers to reset the perspectives. If all the view are already closed the user is prompted to restore the perspective - sort of a toggle. This will restore all the views of the perspective to original positions. If you wish, you can set a keybinding for this in the Window > Preferences > Keys preferences page.
When the above commands are invoked, if the workbench page was zoomed in i.e. any of the workbench part was maximized, it is first zoomed out and the user is prompted to confirm the whether or not to proceed with the action. The idea is that the user gets a chance to eyeball which view(s) will be affected by the action.
NOTE: There is a Close Part command provided by workbench, which is somewhat like Close View command but it treats both views and editors the same way even though workbench does not otherwise treat the views and editors the same way.