|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILineDiffInfo
Describes the change state of one line, which consists of the state of the line itself, which
can be UNCHANGED
, CHANGED
or ADDED
, and the number of
deleted lines before and after this line.
This interface may be implemented by clients.
Field Summary | |
---|---|
static int |
ADDED
Denotes an added line. |
static int |
CHANGED
Denotes a changed line. |
static int |
UNCHANGED
Denotes an unchanged line. |
Method Summary | |
---|---|
int |
getChangeType()
Returns the type of this line, one out of UNCHANGED , CHANGED or
ADDED . |
java.lang.String[] |
getOriginalText()
Returns the original text of this changed region |
int |
getRemovedLinesAbove()
Returns the number of deleted lines before this line. |
int |
getRemovedLinesBelow()
Returns the number of deleted lines after this line. |
boolean |
hasChanges()
Returns whether this line has any changes (to itself, or any deletions before or after it). |
Field Detail |
---|
static final int UNCHANGED
static final int ADDED
static final int CHANGED
Method Detail |
---|
int getRemovedLinesBelow()
int getRemovedLinesAbove()
int getChangeType()
UNCHANGED
, CHANGED
or
ADDED
.
boolean hasChanges()
true
, if the line's state (as returned by getType
) is
either CHANGED
or ADDED
or either of getRemovedLinesBelow
and getRemovedLinesAbove
would return a number > 0java.lang.String[] getOriginalText()
null/code>, it may however be of zero length
|
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.