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
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

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




Eclipse Platform
Release 3.5
Interface IDiffElement

All Superinterfaces:
All Known Subinterfaces:
IDiffContainer, ISynchronizeModelElement
All Known Implementing Classes:
DiffContainer, DiffElement, DiffNode

public interface IDiffElement
extends ITypedElement

An IDiffElement is used in the DiffTreeViewer to display the kind of change detected as the result of a two-way or three-way compare.

The base interface ITypedElement provides a name, a type, and an image. IDiffElement adds API for maintaining a parent relationship.

DiffTreeViewer works on a tree of IDiffElements. Leaf elements must implement the IDiffElement interface, inner nodes the IDiffContainer interface.

IDiffElements are typically created as the result of performing a compare with the Differencer.

Clients may implement this interface, or use one of the standard implementations, DiffElement, DiffContainer, or DiffNode.

See Also:
DiffTreeViewer, DiffElement, DiffContainer, DiffNode

Field Summary
Fields inherited from interface ITypedElement
Method Summary
 int getKind ()
          Returns the kind of difference as defined in Differencer.
  IDiffContainer getParent ()
          Returns the parent of this element.
 void setParent ( IDiffContainer parent)
          Sets the parent of this element.
Methods inherited from interface ITypedElement
getImage, getName, getType

Method Detail


int getKind()
Returns the kind of difference as defined in Differencer.

the kind of difference as defined in Differencer


IDiffContainer getParent()
Returns the parent of this element. If the object is the root of a hierarchy null is returned.

the parent of this element, or null if the element has no parent


void setParent(
IDiffContainer parent)
Sets the parent of this element.

parent - the new parent of this element, or null if this element is to have no parent

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