Note that a participant should not modify the buffer of the working copy that is being reconciled.
Default is to do nothing.
@param context the reconcile context to act onIt performs the reconciliation by locally caching the contents of the working copy, updating the contents, then creating a delta over the cached contents and the new contents, and finally firing this delta.
The boolean argument allows to force problem detection even if the working copy is already consistent.
This functionality allows to specify a working copy owner which is used during problem detection. All references contained in the working copy are resolved against other units; for which corresponding owned working copies are going to take precedence over their original compilation units. If null
is passed in, then the primary working copy owner is used.
Compilation problems found in the new contents are notified through the {@link IProblemRequestor} interface which was passed atcreation, and no longer as transient markers.
Note: Since 3.0, added/removed/changed inner types generate change deltas.
If requested, a DOM AST representing the compilation unit is returned. Its bindings are computed only if the problem requestor is active. This method returns null
if the creation of the DOM AST was not requested, or if the requested level of AST API is not supported, or if the working copy was already consistent.
This method doesn't perform statements recovery. To recover statements with syntax errors, {@link #reconcile(int,boolean,boolean,WorkingCopyOwner,IProgressMonitor)} must be use.
@param astLevel either {@link #NO_AST} if no AST is wanted,or the {@linkplain AST#newAST(int) AST API level} of the AST if one is wanted @param forceProblemDetection boolean indicating whether problem should berecomputed even if the source hasn't changed @param owner the owner of working copies that take precedence over theoriginal compilation units, ornull
if the primary working copy owner should be used
@param monitor a progress monitor
@return the compilation unit AST or null
if not requested,or if the requested level of AST API is not supported, or if the working copy was consistent
@throws JavaModelException if the contents of the original elementcannot be accessed. Reasons include: Note that a participant should not modify the buffer of the working copy that is being reconciled.
Default is to do nothing.
@param context the reconcile context to act on
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|