1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 23:15:24 +02:00

Add getResource().

This commit is contained in:
Alain Magloire 2002-11-18 15:43:08 +00:00
parent ba94208e02
commit 8e7d223aa9

View file

@ -249,6 +249,16 @@ public interface ICElement extends IAdaptable {
*/ */
IResource getUnderlyingResource() throws CModelException; IResource getUnderlyingResource() throws CModelException;
/**
* Returns the Corresponding resource for
* this element, or <code>null</code> if this element does not have
* a corresponding resource.
*
* @return the corresponding resource, or <code>null</code> if none
* @exception CModelException if this element does not exist or if an
* exception occurs while accessing its resource
*/
IResource getResource() throws CModelException;
/** /**
* Returns whether this C element is read-only. An element is read-only * Returns whether this C element is read-only. An element is read-only
* if its structure cannot be modified by the C model. * if its structure cannot be modified by the C model.