Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] isReadOnly


Yes, there is a semantic difference. An IJavaElement is read-only if its structure cannot be modified by the java model.
For example, .jar files are read-only as the java model doesn't know how to add/remove elements in this file, but the underlying
IFile can be writable.
 
I updated the javadoc to clarify this point.

Jerome


"Adam Kiezun" <adam.kiezun@xxxxxxx>
Sent by: jdt-core-dev-admin@xxxxxxxxxxx

11/19/01 03:21 PM
Please respond to jdt-core-dev

       
        To:        <jdt-core-dev@xxxxxxxxxxx>
        cc:        
        Subject:        [jdt-core-dev] isReadOnly


Salut,

is there a semantic diff between
IJavaElement::isReadOnly and
IJavaElement::getCorrespondingResource::isReadOnly ?

should i always check both?
if a difference does exist - could that be doc'ed?

thanks
a.

_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-core-dev



Back to the top