Project: Eclipse_Platform_UI
Bug 115996 [Commands] [RCP] Document available services in IWorkbench
Reported: 2005-11-11 06:56:34 | Status: verified fixed

I20051108-1011 The Javadoc of IWorkbench should enumerate all the I*Services available via getAdapter(..). The only hints clients currently have is the javadoc of deprecated API like [..] * @deprecated Please use <code>getAdapter(IContextService.class)</code> * instead. * @see org.eclipse.ui.contexts.IContextService */ IWorkbenchContextSupport getContextSupport(); This should be made explicit, such that clients can rely on workbench.getAdapter(IContextService.class) to return a non-null service instance.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/IWorkbench.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/IWorkbenchPartSite.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/IWorkbenchSite.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/IWorkbenchWindow.java