Bug 327926 Delete deprecated deactivate(MPart) method from EPartService
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ApplicationPartServiceImpl.java
private MApplication application;
	@Inject
	ApplicationPartServiceImpl(MApplication application) {
		this.application = application;
	}
	private EPartService getActiveWindowService() {
		IEclipseContext activeWindowContext = application.getContext().getActiveChild();
		if (activeWindowContext == null) {
			throw new IllegalStateException("Application does not have an active window"); 
		}
		EPartService activeWindowPartService = activeWindowContext.get(EPartService.class);
		if (activeWindowPartService == null) {
			throw new IllegalStateException("Active window context is invalid"); 
		}
		return activeWindowPartService;
	}
	public void addPartListener(IPartListener listener) {
		throw new UnsupportedOperationException(
				"Listeners should only be attached/removed from a window's part service"); 
	}
	public void removePartListener(IPartListener listener) {
		throw new UnsupportedOperationException(
				"Listeners should only be attached/removed from a window's part service"); 
	}
	public void switchPerspective(MPerspective perspective) {
		getActiveWindowService().switchPerspective(perspective);