Bug 123825 Compiler error in ViewSiteDecorator
I only caught this after committing a rather large set of changes. ViewSiteDecorator implements IViewSite, which is a violation of our API. IViewSite now extends (indirectly) IServiceLocator. This means ViewSiteDecorator needs to implement two new methods. public Object getService(Object key) { return fViewSite.getService(key); } public boolean hasService(Object key) { return false; } If the "Decorator" in ViewSiteDecorator refers to the decorator pattern, then you probably actually want: public boolean hasService(Object key) { return fViewSite.hasService(key); } I would rather not back out my change. Could someone please respond ASAP (if you happen to be working from home)? Thanks.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/util/ViewSiteDecorator.java
}
	public String getRegisteredName() {
		return fViewSite.getRegisteredName();
	}
	public String getSecondaryId() {
		return fViewSite.getSecondaryId();
	}
	public void registerContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider) {
		fViewSite.registerContextMenu(menuId, menuManager, selectionProvider);
	}
	public void registerContextMenu(MenuManager menuManager, ISelectionProvider selectionProvider) {
		fViewSite.registerContextMenu(menuManager, selectionProvider);
	}
	public IWorkbenchPage getPage() {
		return fViewSite.getPage();
	}
	public ISelectionProvider getSelectionProvider() {
		return fSelectionProvider;
	}
	public Shell getShell() {
		return fViewSite.getShell();
	}
	public IWorkbenchWindow getWorkbenchWindow() {
		return fViewSite.getWorkbenchWindow();
	}
	public void setSelectionProvider(ISelectionProvider provider) {
		throw new UnsupportedOperationException();
	}
}