additional arguments are provided to perform the refactoring (for example
the new name of a element in the case of a rename refactoring). It is up
to a concrete implementation to provide corresponding API.

setValidationContext

context - the org.eclipse.swt.widgets.Shell that is
to be used to parent any dialogs with the user, or null if
there is no UI context (declared as an Object to avoid any
direct references on the SWT component)

checkInitialConditions

Checks some initial conditions based on the element to be refactored. The
method is typically called by the UI to perform an initial checks after an
action has been executed.

The refactoring has to be considered as not being executable if the returned status
has the severity of RefactoringStatus#FATAL.

This method can be called more than once.

Parameters:

pm - a progress monitor to report progress. Although initial checks
are supposed to execute fast, there can be certain situations where progress
reporting is necessary. For example rebuilding a corrupted index may report
progress.

Returns:

a refactoring status. If the status is RefactoringStatus#FATAL
the refactoring has to be considered as not being executable.

Throws:

CoreException - if an exception occurred during initial condition checking.
If this happens then the initial condition checking has to be interpreted as failed

getAdapter

Returns an object which is an instance of the given class
associated with this object. Returns null if
no such object can be found.

This implementation of the method declared by IAdaptable
passes the request along to the platform's adapter manager; roughly
Platform.getAdapterManager().getAdapter(this, adapter).
Subclasses may override this method (however, if they do so, they
should invoke the method on their superclass to ensure that the
Platform's adapter manager is consulted).