Introduce a method to find projects containing paths
commit49480572da5418dfd15737725912bbf73acd5b48
authorMarkus Duft <markus.duft@salomon.at>
Fri, 13 Jul 2012 11:06:25 +0000 (13 13:06 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 24 Jan 2013 21:03:14 +0000 (24 22:03 +0100)
tree0f88f4e54b2debe1347f8ab25f725ca208910f8e
parentc22a906c5cdb7ddb23dda06535c2ca8ca60e8988
Introduce a method to find projects containing paths

The code searches for IContainer's containing a certain path, by
comparing all IProject's and the IWorkspaceRoot location with the given
filename. This is much cheaper than calling
IWorkspaceRoot.findContainersForLocationURI().

This is required by multiple changes

Change-Id: I9c85247d6e0410bc0caefd6a4594373514e16562
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.egit.core.test/src/org/eclipse/egit/core/internal/util/ProjectUtilTest.java
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/util/ProjectUtil.java