|
Eclipse Platform Kepler (4.3) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.revisions.Revision
public abstract class Revision
Describes a revision of a document. A revision consists of one ore more ILineRange
s.
Clients may subclass.
Constructor Summary | |
---|---|
protected |
Revision()
Creates a new revision. |
Method Summary | |
---|---|
void |
addRange(ILineRange range)
Adds a line range to this revision. |
java.lang.String |
getAuthor()
Returns the display string for the author of this revision. |
abstract RGB |
getColor()
Returns the author color for this revision. |
abstract java.util.Date |
getDate()
Returns the modification date of this revision. |
abstract java.lang.Object |
getHoverInfo()
Returns the hover information that will be shown when the user hovers over the a change region of this revision. |
abstract java.lang.String |
getId()
Returns the unique (within the document) id of this revision. |
java.util.List |
getRegions()
Returns the contained RevisionRange s adapted to the current diff state. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Revision()
Method Detail |
---|
public final void addRange(ILineRange range) throws java.lang.IndexOutOfBoundsException
range
- a line range that was changed with this revision
java.lang.IndexOutOfBoundsException
- if the line range is empty or has a negative start linepublic final java.util.List getRegions()
RevisionRange
s adapted to the current diff state. The returned
information is only valid at the moment it is returned, and may change as the annotated
document is modified.
RevisionRange
)public abstract java.lang.Object getHoverInfo()
Note: The hover information control which is used to display the information must be able process the given object. If the default information control creator is used the supported format is simple text, full HTML or an HTML fragment.
null
for no hoverRevisionInformation.setHoverControlCreator(IInformationControlCreator)
public abstract RGB getColor()
Revisions from the same author must return the same color and revisions from different authors must return distinct colors.
public abstract java.lang.String getId()
public abstract java.util.Date getDate()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAuthor()
Subclasses should replace - the default implementation returns the empty string.
|
Eclipse Platform Kepler (4.3) |
|||||||||
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, 2012. All rights reserved.