|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDiffElement
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.
DiffTreeViewer,
DiffElement,
DiffContainer,
DiffNode| Field Summary |
|---|
| Fields inherited from interface org.eclipse.compare.ITypedElement |
|---|
FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE |
| 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 org.eclipse.compare.ITypedElement |
|---|
getImage, getName, getType |
| Method Detail |
|---|
int getKind()
Differencer.
DifferencerIDiffContainer getParent()
null is returned.
null if the element has no parentvoid setParent(IDiffContainer parent)
parent - the new parent of this element, or null if this
element is to have no parent
|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.