|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.compare.structuremergeviewer.DiffElement
public abstract class DiffElement
An abstract base implementation of the IDiffElement interface.
Subclasses may add behavior and state, and may override getImage
and getType to suit.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.compare.ITypedElement |
|---|
FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE |
| Constructor Summary | |
|---|---|
DiffElement(IDiffContainer parent,
int kind)
Creates a new DiffElement as a child of the given parent. |
|
| Method Summary | |
|---|---|
Image |
getImage()
The DiffElement implementation of this ITypedInput
method returns null. |
int |
getKind()
Returns the kind of difference as defined in Differencer. |
IDiffContainer |
getParent()
Returns the parent of this element. |
java.lang.String |
getType()
The DiffElement implementation of this ITypedElement
method returns ITypedElement.UNKNOWN_TYPE. |
void |
setKind(int kind)
Sets the kind of difference for this element. |
void |
setParent(IDiffContainer parent)
Sets the parent of this element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.compare.ITypedElement |
|---|
getName |
| Constructor Detail |
|---|
public DiffElement(IDiffContainer parent,
int kind)
DiffElement as a child of the given parent.
If parent is not null the new element is added to the parent.
parent - the parent of this child; if not null this element is automatically added as a childkind - the kind of change| Method Detail |
|---|
public Image getImage()
DiffElement implementation of this ITypedInput
method returns null. Subclasses may re-implement to provide
an image for this element.
getImage in interface ITypedElementnull.public java.lang.String getType()
DiffElement implementation of this ITypedElement
method returns ITypedElement.UNKNOWN_TYPE. Subclasses may
re-implement to provide a type for this element.
getType in interface ITypedElementITypedElement.UNKNOWN_TYPE.public void setKind(int kind)
kind - set the kind of difference this element representsDifferencerpublic int getKind()
IDiffElementDifferencer.
getKind in interface IDiffElementDifferencerpublic IDiffContainer getParent()
IDiffElementnull is returned.
getParent in interface IDiffElementnull if the element has no parentpublic void setParent(IDiffContainer parent)
IDiffElement
setParent in interface IDiffElementparent - the new parent of this element, or null if this
element is to have no parent
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.