Bug 304997 [CommonNavigator] Sync view changesets no longer show outgoing changes
bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider.java
else
					parentPaths.addAll(foundPaths);
			}
		}
		return parentPaths;
	}
	private Set findParents(Object anElement) {
		Set descriptors = contentService.findDescriptorsWithPossibleChild(anElement, false);
		Set parents = new LinkedHashSet();
		NavigatorContentDescriptor foundDescriptor;
		NavigatorContentExtension foundExtension;
		Object parent = null;
		for (Iterator itr = descriptors.iterator(); itr.hasNext();) {
			foundDescriptor = (NavigatorContentDescriptor) itr.next();
			foundExtension = contentService.getExtension(foundDescriptor);
			try {
				if (!isOverridingDescriptorInSet(foundExtension.getDescriptor(), descriptors)) {
					if (foundExtension.internalGetContentProvider().isTreePath()) {
						TreePath[] parentTreePaths = ((ITreePathContentProvider) foundExtension
								.internalGetContentProvider()).getParents(anElement);
						for (int i = 0; i < parentTreePaths.length; i++) {
							parent = parentTreePaths[i].getLastSegment();
							if ((parent = findParent(foundExtension, anElement, parent)) != null)
								parents.add(parent);
						}
					} else {
						parent = foundExtension.internalGetContentProvider().getParent(anElement);
						if ((parent = findParent(foundExtension, anElement, parent)) != null)
							parents.add(parent);
					}