It is possible that the contents of the original resource have changed since this working copy was created, in which case there is an update conflict. The value of the force
parameter affects the resolution of such a conflict:
true
- in this case the contents of this working copy are applied to the underlying resource even though this working copy was created before a subsequent change in the resourcefalse
- in this case a {@link JavaModelException} is thrownSince 2.1, a working copy can be created on a not-yet existing compilation unit. In particular, such a working copy can then be committed in order to create the corresponding compilation unit.
@param force a flag to handle the cases when the contents of the original resource have changedsince this working copy was created @param monitor the given progress monitor @throws JavaModelException if this working copy could not commit. Reasons include:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|