All Implemented Interfaces:
public class CreateChangeOperation
Operation that, when performed, creates a
Change object for a given
refactoring. If created with a refactoring object directly, no precondition
checking is performed. If created with a
requested precondition checking is performed before creating the change.
If the precondition checking returns a fatal error or the status's severity
exceeds a certain threshold then no change will be created.
If a change has been created the operation calls
to initialize the change's validation data.
The operation should be executed via the run method offered by
IWorkspace to achieve proper delta batching.
Note: this class is not intended to be extended by clients.
- This class is not intended to be subclassed by clients.
Methods inherited from class java.lang.
- Creates a new operation with the given refactoring. No condition checking
is performed before creating the change object. It is assumed that the
condition checking has already been performed outside of this operation.
The operation might fail if the precondition checking has not been performed
refactoring - the refactoring for which the change is to be created
- Creates a new operation with the given
performed the operation first checks the conditions as specified by the
CheckConditionsOperation. Depending on the result of the condition
checking a change object is created or not.
operation - the condition checking operation
checkFailedSeverity - the severity from which on the condition checking is
interpreted as failed. The passed value must be greater than
and less than or equal
The standard value from which on a condition check should is to be interpreted as
failed can be accessed via
public int getConditionCheckingFailedSeverity()
- Returns the condition checking failed severity used by this operation.
- the condition checking failed severity
public void run(
- Runs the operation reporting progress to and accepting
cancellation requests from the given progress monitor.
Implementors of this method should check the progress monitor
for cancellation when it is safe and appropriate to do so. The cancellation
request should be propagated to the caller by throwing
pm - a progress monitor, or
null if progress
reporting and cancellation are not desired
- if this operation fails.
- Returns the outcome of the operation or
null if an exception
occurred when performing the operation or the operation hasn't been
- the created change or
- Returns the status of the condition checking. Returns
no condition checking has been requested.
- the status of the condition checking
public int getConditionCheckingStyle()
- Returns the condition checking style as set to the
If no condition checking operation is provided (e.g. the change is created directly
CheckConditionsOperation.NONE is returned.
- the condition checking style
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.