Project: Eclipse_Platform_UI
Bug 50094 [ViewMgmt] API to close a view without instantiating it
Reported: 2004-01-15 14:55:48 | Status: closed fixed

IWorkbenchPage should provide an API for closing a view without instantiating it. IWorkbenchPage#hideView(String viewId), to complement IWorkbenchPage#showView(String viewId). Without this API, clients have to instantiate views before closing them. This could mean a lot of work loading plug-ins just to close a view. This API is particularly useful for the Debuggers work related to opening/closing views in the Debug Perspective in response to context changes.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/IWorkbenchPage.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/IWorkbenchPageTest.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/MockViewPart.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/SessionPerspective.java