1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

use getResource() instead of getUnderlyingResource()

This commit is contained in:
Alain Magloire 2002-11-18 15:52:02 +00:00
parent 60f77885af
commit 94e2d67e88

View file

@ -74,7 +74,7 @@ public class CElementAdapterFactory implements IAdapterFactory {
if (res != null)
return res.getWorkspace().getRoot();
} else if (IProject.class.equals(key)) {
res = celem.getUnderlyingResource();
res = celem.getResource();
if (res != null)
return res.getProject();
} else if (IResource.class.equals(key)) {