public abstract class AbstractReconcileStep extends Object implements IReconcileStep
| Modifier and Type | Field and Description |
|---|---|
protected IReconcilableModel |
fInputModel |
| Constructor and Description |
|---|
AbstractReconcileStep()
Creates the last reconcile step of the pipe.
|
AbstractReconcileStep(IReconcileStep step)
Creates an intermediate reconcile step which adds
the given step to the pipe.
|
| Modifier and Type | Method and Description |
|---|---|
protected IReconcileResult[] |
convertToInputModel(IReconcileResult[] inputResults)
Adapts the given an array with reconcile results to
this step's input model and returns it.
|
IReconcilableModel |
getInputModel()
Returns the reconcilable input model.
|
abstract IReconcilableModel |
getModel()
Returns the reconcilable model.
|
IProgressMonitor |
getProgressMonitor()
Returns the progress monitor used to report progress.
|
protected boolean |
isCanceled() |
boolean |
isFirstStep()
Returns whether this is the first reconcile step or not.
|
boolean |
isLastStep()
Returns whether this is the last reconcile step or not.
|
IReconcileResult[] |
reconcile(DirtyRegion dirtyRegion,
IRegion subRegion)
Activates incremental reconciling of the specified dirty region.
|
IReconcileResult[] |
reconcile(IRegion partition)
Activates non-incremental reconciling.
|
protected abstract IReconcileResult[] |
reconcileModel(DirtyRegion dirtyRegion,
IRegion subRegion)
Reconciles the model of this reconcile step.
|
void |
setInputModel(IReconcilableModel inputModel)
Tells this reconcile step on which model it will
work.
|
void |
setPreviousStep(IReconcileStep step)
Sets the step which is in front of this step in the pipe.
|
void |
setProgressMonitor(IProgressMonitor monitor)
Sets the progress monitor for this reconcile step.
|
protected IReconcilableModel fInputModel
public AbstractReconcileStep(IReconcileStep step)
step - the reconcile steppublic AbstractReconcileStep()
public boolean isLastStep()
IReconcileStepisLastStep in interface IReconcileSteptrue iff this is the last reconcile steppublic boolean isFirstStep()
IReconcileStepisFirstStep in interface IReconcileSteptrue iff this is the first reconcile steppublic void setProgressMonitor(IProgressMonitor monitor)
IReconcileStepsetProgressMonitor in interface IReconcileStepmonitor - the progress monitor to be usedpublic IProgressMonitor getProgressMonitor()
IReconcileStepgetProgressMonitor in interface IReconcileStepnull if no progress monitor is availablepublic final IReconcileResult[] reconcile(IRegion partition)
IReconcileStepIReconcilingStrategy.setDocument(org.eclipse.jface.text.IDocument).reconcile in interface IReconcileSteppartition - the document partition to be reconciledpublic final IReconcileResult[] reconcile(DirtyRegion dirtyRegion, IRegion subRegion)
IReconcileStepIReconcilingStrategy.setDocument(org.eclipse.jface.text.IDocument).reconcile in interface IReconcileStepdirtyRegion - the document region which has been changedsubRegion - the sub region in the dirty region which should be reconciledprotected abstract IReconcileResult[] reconcileModel(DirtyRegion dirtyRegion, IRegion subRegion)
dirtyRegion - the document region which has been changedsubRegion - the sub region in the dirty region which should be reconciledprotected IReconcileResult[] convertToInputModel(IReconcileResult[] inputResults)
inputResults - an array with reconcile resultsprotected final boolean isCanceled()
public void setPreviousStep(IReconcileStep step)
IReconcileStepNote: This method must be called at most once per reconcile step.
setPreviousStep in interface IReconcileStepstep - the previous steppublic void setInputModel(IReconcilableModel inputModel)
IReconcileStepsetInputModel in interface IReconcileStepinputModel - the model on which this step will workpublic IReconcilableModel getInputModel()
public abstract IReconcilableModel getModel()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.