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
Answertopia.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.team.core.diff.provider
Class ThreeWayDiff


java.lang.Object
  extended by 

org.eclipse.team.core.diff.provider.Diff
      extended by 
org.eclipse.team.core.diff.provider.ThreeWayDiff
All Implemented Interfaces:
IDiff, IThreeWayDiff

public class ThreeWayDiff
extends Diff
implements IThreeWayDiff

Implementation of IThreeWayDiff.

Since:
3.2
Restriction:
This class is not intended to be subclassed by clients.

Field Summary
 
Fields inherited from class org.eclipse.team.core.diff.provider. Diff
KIND_MASK
 
Fields inherited from interface org.eclipse.team.core.diff. IThreeWayDiff
CONFLICTING, DIRECTION_MASK, INCOMING, OUTGOING
 
Fields inherited from interface org.eclipse.team.core.diff. IDiff
ADD, CHANGE, NO_CHANGE, REMOVE
 
Constructor Summary
ThreeWayDiff ( ITwoWayDiff localChange, ITwoWayDiff remoteChange)
          Create a three-way delta from the two changes.
 
Method Summary
 boolean equals ( Object obj)
           
 int getDirection ()
          Return the direction of this three-way delta.
  ITwoWayDiff getLocalChange ()
          Return the local change associated with this delta.
  ITwoWayDiff getRemoteChange ()
          Return the remote change associated with this delta.
  String toDiffString ()
          Return a string that describes the difference represented by this node.
 
Methods inherited from class org.eclipse.team.core.diff.provider. Diff
getKind, getPath, getStatus, hashCode
 
Methods inherited from class java.lang. Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.team.core.diff. IDiff
getKind, getPath
 

Constructor Detail

ThreeWayDiff

public ThreeWayDiff(
ITwoWayDiff localChange,
                    
ITwoWayDiff remoteChange)
Create a three-way delta from the two changes. At least one change must be provided (i.e. either change may be null but at least one must be non-null).

Parameters:
localChange - the local change in the model object or null if there is no local change
remoteChange - the remote change in the model object or null if there is no local change
Method Detail

getLocalChange

public 
ITwoWayDiff getLocalChange()
Description copied from interface: IThreeWayDiff
Return the local change associated with this delta. If there is no local change, either a delta with kind IDiff.NO_CHANGE is returned or null may be returned.

Specified by:
getLocalChange in interface IThreeWayDiff
Returns:
the local change associated with this delta or null

getRemoteChange

public 
ITwoWayDiff getRemoteChange()
Description copied from interface: IThreeWayDiff
Return the remote change associated with this delta. If there is no remote change, either a delta with kind IDiff.NO_CHANGE is returned or null may be returned.

Specified by:
getRemoteChange in interface IThreeWayDiff
Returns:
the remote change associated with this delta or null

getDirection

public int getDirection()
Description copied from interface: IThreeWayDiff
Return the direction of this three-way delta.

Specified by:
getDirection in interface IThreeWayDiff
Returns:
the direction of this three-way delta
See Also:
IThreeWayDiff.INCOMING, IThreeWayDiff.OUTGOING, IThreeWayDiff.CONFLICTING

toDiffString

public 
String toDiffString()
Description copied from interface: IDiff
Return a string that describes the difference represented by this node.

Specified by:
toDiffString in interface IDiff
Overrides:
toDiffString in class Diff
Returns:
a string that describes the difference represented by this node

equals

public boolean equals(
Object obj)
Overrides:
equals in class Diff

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