public abstract class VCSAnnotator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VCSAnnotator.ActionDestination
Specifies destination of returned actions.
|
Modifier | Constructor and Description |
---|---|
protected |
VCSAnnotator()
Protected constructor, does nothing.
|
Modifier and Type | Method and Description |
---|---|
Image |
annotateIcon(Image icon,
VCSContext context)
Allows a versioning system to decorate given icon (badging).
|
String |
annotateName(String name,
VCSContext context)
Allows a versioning system to decorate given name with HTML markup.
|
Action[] |
getActions(VCSContext context,
VCSAnnotator.ActionDestination destination)
Returns set of actions to offer to the user use on a given context.
|
public String annotateName(String name, VCSContext context)
name
- text to decoratecontext
- a context this name representspublic Image annotateIcon(Image icon, VCSContext context)
icon
- an icon to decoratecontext
- a context this icon representspublic Action[] getActions(VCSContext context, VCSAnnotator.ActionDestination destination)
context
- context on which returned actions should operatedestination
- where this actions will be used