public abstract class AbstractSynchronizationCompareAdapter extends SynchronizationCompareAdapter
This class provides compare support for the refactoring history objects associated with a refactoring model provider.
Note: this class is designed to be extended by clients. Programming language implementers which need a refactoring-aware synchronization compare adapter to contribute to team synchronization views may extend this class to provide specific compare inputs for their model elements.
SynchronizationCompareAdapter
Constructor and Description |
---|
AbstractSynchronizationCompareAdapter() |
Modifier and Type | Method and Description |
---|---|
ICompareInput |
asCompareInput(ISynchronizationContext context,
Object element)
Default implementation that is capable of returning a compare input for objects
that adapt to
IFile . |
protected int |
getKind(ISynchronizationContext context,
RefactoringDescriptorProxy proxy)
Returns the kind of difference between the three sides ancestor, left and
right of the specified refactoring descriptor proxy.
|
getImageDescriptor, getName, getPathString, getSynchronizationState, hasCompareInput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
restore, save
public AbstractSynchronizationCompareAdapter()
public ICompareInput asCompareInput(ISynchronizationContext context, Object element)
IFile
. Subclasses should override if compare inputs are
available for other types of model elements.asCompareInput
in interface ISynchronizationCompareAdapter
asCompareInput
in class SynchronizationCompareAdapter
context
- the synchronization contextelement
- the model objectnull
if the model object is
in-sync or otherwise cannot be compared.ISynchronizationCompareAdapter.asCompareInput(ISynchronizationContext, Object)
protected int getKind(ISynchronizationContext context, RefactoringDescriptorProxy proxy)
The result of this method is used to compose an icon which reflects the kind of difference between the two or three versions of the refactoring descriptor.
context
- the synchronization contextproxy
- the refactoring descriptor proxyICompareInput.getKind()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.