&& hasReadOnlyResourcesAndSubResources((IResource) object))
return true;
}
return hasReadOnlyResourcesAndSubResources(pack.getChildren());
case IModelElement.PROJECT_FRAGMENT:
IProjectFragment root = (IProjectFragment) modelElement;
if (root.isArchive())
return false;
IResource pfrResource = ReorgUtils.getResource(modelElement);
if (pfrResource == null)
return false;
if (Resources.isReadOnly(pfrResource))
return true;
Object[] nonScript1 = root.getForeignResources();
for (int i = 0; i < nonScript1.length; i++) {
Object object = nonScript1[i];
if (object instanceof IResource
&& hasReadOnlyResourcesAndSubResources((IResource) object))
return true;
}
return hasReadOnlyResourcesAndSubResources(root.getChildren());
case IModelElement.FIELD:
// case IModelElement.IMPORT_CONTAINER:
// case IModelElement.IMPORT_DECLARATION:
// case IModelElement.INITIALIZER: