Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ltk.ui.refactoring.model
Class AbstractSynchronizationCompareAdapter

java.lang.Object
  extended by 

org.eclipse.team.ui.mapping.SynchronizationCompareAdapter
      extended by 
org.eclipse.ltk.ui.refactoring.model.AbstractSynchronizationCompareAdapter
All Implemented Interfaces:
ISynchronizationCompareAdapter

public abstract class AbstractSynchronizationCompareAdapter
extends SynchronizationCompareAdapter

Partial implementation of a refactoring-aware synchronization compare adapter.

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.

Since:
3.2
See Also:
SynchronizationCompareAdapter

Constructor Summary
AbstractSynchronizationCompareAdapter ()
           
 
Method Summary
  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.
 
Methods inherited from class org.eclipse.team.ui.mapping. SynchronizationCompareAdapter
getImageDescriptor, getName, getPathString, getSynchronizationState, hasCompareInput
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.team.ui.mapping. ISynchronizationCompareAdapter
restore, save
 

Constructor Detail

AbstractSynchronizationCompareAdapter

public AbstractSynchronizationCompareAdapter()
Method Detail

asCompareInput

public 
ICompareInput asCompareInput(
ISynchronizationContext context,
                                    
Object element)
Default implementation that is capable of returning a compare input for objects that adapt to IFile. Subclasses should override if compare inputs are available for other types of model elements.

Specified by:
asCompareInput in interface ISynchronizationCompareAdapter
Overrides:
asCompareInput in class SynchronizationCompareAdapter
Parameters:
context - the synchronization context
element - the model object
Returns:
a compare input or null if the model object is in-sync or otherwise cannot be compared.
See Also:
ISynchronizationCompareAdapter.asCompareInput(ISynchronizationContext, Object)

getKind

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.

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.

Parameters:
context - the synchronization context
proxy - the refactoring descriptor proxy
Returns:
the kind of difference
See Also:
ICompareInput.getKind()

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire