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
Interface IThreeWayDiff

All Superinterfaces:
IDiff
All Known Implementing Classes:
ThreeWayDiff

public interface IThreeWayDiff
extends IDiff

A three-way delta that describe the synchronization state between two contributors and an ancestor. For simplicity, we refer to one of the contributors as the local and the other as the remote. A three-way delta is represented as a combination of two two-way deltas, one between the ancestor and local and the other between the ancestor and remote. For a three-way delta, clients can assume that the before state of both the local and remote changes are the same.

Since:
3.2
Restriction:
This interface is not intended to be implemented by clients. Clients that need to create deltas should instead use ThreeWayDiff.

Field Summary
static int CONFLICTING
          Constant (bit mask) indicating that there is both a local change and a remote change.
static int DIRECTION_MASK
          Bit mask for extracting the synchronization direction.
static int INCOMING
          Constant (bit mask) indicating that there is a local change.
static int OUTGOING
          Constant (bit mask) indicating that there is a local change.
 
Fields inherited from interface org.eclipse.team.core.diff. IDiff
ADD, CHANGE, NO_CHANGE, REMOVE
 
Method Summary
 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.
 
Methods inherited from interface org.eclipse.team.core.diff. IDiff
getKind, getPath, toDiffString
 

Field Detail

OUTGOING

static final int OUTGOING
Constant (bit mask) indicating that there is a local change.

See Also:
getDirection(), Constant Field Values

INCOMING

static final int INCOMING
Constant (bit mask) indicating that there is a local change.

See Also:
getDirection(), Constant Field Values

CONFLICTING

static final int CONFLICTING
Constant (bit mask) indicating that there is both a local change and a remote change. This flag is equivalent to OUTGOING | INCOMING.

See Also:
getDirection(), Constant Field Values

DIRECTION_MASK

static final int DIRECTION_MASK
Bit mask for extracting the synchronization direction.

See Also:
Constant Field Values
Method Detail

getLocalChange


ITwoWayDiff getLocalChange()
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.

Returns:
the local change associated with this delta or null

getRemoteChange


ITwoWayDiff getRemoteChange()
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.

Returns:
the remote change associated with this delta or null

getDirection

int getDirection()
Return the direction of this three-way delta.

Returns:
the direction of this three-way delta
See Also:
INCOMING, OUTGOING, CONFLICTING

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