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

IsReadonly new method

This commit is contained in:
Alain Magloire 2002-11-18 15:47:31 +00:00
parent ba7d1abca2
commit f3f0b3d63c

View file

@ -94,6 +94,20 @@ class CElementInfo {
return fIsStructureKnown;
}
/**
* @see ICElement.isStructureKnown()
*/
public boolean isReadOnly () {
try {
IResource r = getElement().getUnderlyingResource();
if (r != null) {
return r.isReadOnly();
}
} catch (CModelException e) {
}
return true;
}
/**
* Returns an array with all the same elements as the specified array except for
* the element to remove. Assumes that the deletion is contained in the array.