public interface PluginMergeStrategies
help topic/URL
to document how
each strategy works.
This SPI is an optional part of the SCM contract
. SCMs which implement
merge strategies should enable the feature
, or their strategies will not be
used.
Modifier and Type | Method and Description |
---|---|
String |
getHelpTopic()
Retrieves a help topic, which is used to
look up a URL for additional documentation about the available merge strategies. |
Set<PluginMergeStrategy> |
getStrategies()
Retrieves the set of supported
merge strategies . |
@Nonnull String getHelpTopic()
look up a URL
for additional documentation about the available merge strategies. While each strategy
has its own description
, that is intended to be a short
summary of how the strategy works. The help documentation is expected to provide a richer, more in-depth
explanation of what the available strategies do.
There are two approaches for implementing this method:
"myscm.mergestrategies.help"
.
atlassian-plugin.xml
.
The XML looks like: <resource type="i18n" name="..." location="..."/>
URL lookup
doesn't return a value, the system assumes the topic value is the URL to use.@Nonnull Set<PluginMergeStrategy> getStrategies()
merge strategies
. The returned set may be fixed,
or it may vary (for example, some merge strategies might only be available when a specific version or version
range of the SCM is installed).
The returned Set
is required to contain at least one strategy, and implementors are strongly
encouraged to support at least two. Merge strategies are not actually "selectable" when there is only one
option.
Copyright © 2020 Atlassian. All rights reserved.