Project: Eclipse_Platform_UI
Bug 165368 [Viewers] TreePath.getParentPath() should return empty path
Reported: 2006-11-21 15:11:02 | Status: resolved fixed

TreePath.getParentPath() specifies that it returns null for an empty path. However, it also returns null for a one element path. I think it should return the empty path for a one element path, to be consistent with an empty path representing a root element in a tree.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreePath.java