Package org.eclipse.jface.text.revisions
Interface IRevisionRulerColumnExtension
- All Known Implementing Classes:
LineNumberChangeRulerColumn
public interface IRevisionRulerColumnExtension
Extension interface for
IRevisionRulerColumn.
Introduces the ability to register a selection listener on revisions and configurable rendering modes.
- Since:
- 3.3
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classRendering mode type-safe enum. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IRevisionRulerColumnExtension.RenderingModeRendering mode that assigns colors to revisions by their age.static final IRevisionRulerColumnExtension.RenderingModeRendering mode that assigns a unique color to each revision author.static final IRevisionRulerColumnExtension.RenderingModeRendering mode that assigns unique colors per revision author and uses different color intensity depending on the age. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRevisionListener(IRevisionListener listener) Adds a revision listener that will be notified when the displayed revision information changes.Returns the revision selection provider.voidremoveRevisionListener(IRevisionListener listener) Removes a previously registered revision listener; nothing happens iflistenerwas not registered with the receiver.voidChanges the rendering mode and triggers redrawing if needed.voidshowRevisionAuthor(boolean show) Enables showing the revision author.voidshowRevisionId(boolean show) Enables showing the revision id.
-
Field Details
-
AUTHOR
Rendering mode that assigns a unique color to each revision author. -
AGE
Rendering mode that assigns colors to revisions by their age.Currently the most recent revision is red, the oldest is a faint yellow. The coloring scheme can change in future releases.
-
AUTHOR_SHADED_BY_AGE
Rendering mode that assigns unique colors per revision author and uses different color intensity depending on the age.Currently it selects lighter colors for older revisions and more intense colors for more recent revisions. The coloring scheme can change in future releases.
-
-
Method Details
-
setRevisionRenderingMode
Changes the rendering mode and triggers redrawing if needed.- Parameters:
mode- the rendering mode
-
showRevisionId
void showRevisionId(boolean show) Enables showing the revision id.- Parameters:
show-trueto show the revision,falseto hide it
-
showRevisionAuthor
void showRevisionAuthor(boolean show) Enables showing the revision author.- Parameters:
show-trueto show the author,falseto hide it
-
getRevisionSelectionProvider
ISelectionProvider getRevisionSelectionProvider()Returns the revision selection provider.- Returns:
- the revision selection provider
-
addRevisionListener
Adds a revision listener that will be notified when the displayed revision information changes.- Parameters:
listener- the listener to add
-
removeRevisionListener
Removes a previously registered revision listener; nothing happens iflistenerwas not registered with the receiver.- Parameters:
listener- the listener to remove
-