1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +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) if (res != null)
return res.getWorkspace().getRoot(); return res.getWorkspace().getRoot();
} else if (IProject.class.equals(key)) { } else if (IProject.class.equals(key)) {
res = celem.getUnderlyingResource(); res = celem.getResource();
if (res != null) if (res != null)
return res.getProject(); return res.getProject();
} else if (IResource.class.equals(key)) { } else if (IResource.class.equals(key)) {