Interface ISymlinkTranslationContributor
-
public interface ISymlinkTranslationContributor
A symbolic link translation contributor. It guarantees to translate symbolic links in contexts it supports.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMatchingSymlinks
getMatchingSymlinks(ComparisonNode node, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference reference, ComparisonSide sourceSide, String symlink, ComparisonContext comparisonContext, IMergeSession mergeSession)
Returns a "matching symlinks" object for the specified symbolic link in the specified context.IMatchingSymlinks
getMatchingSymlinksToTopObject(ComparisonContext comparisonContext, String symlink, ComparisonSide side, IMergeSession mergeSession)
Returns matched symlinks to the top object with the given symlink on a given comparison side.
-
-
-
Method Detail
-
getMatchingSymlinks
IMatchingSymlinks getMatchingSymlinks(ComparisonNode node, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference reference, ComparisonSide sourceSide, String symlink, ComparisonContext comparisonContext, IMergeSession mergeSession)
Returns a "matching symlinks" object for the specified symbolic link in the specified context.- Parameters:
node
- the comparison result node hosting theeObject
- the referencing EObjectreference
- the referencesourceSide
- the side of the symbolic linksymlink
- the symbolic link for which to get matching symlinkscomparison
- context the comparison context, cannot benull
mergeSession
- the merge session. If notnull
, the resulting matching symlinks must contain an accordingly translated other symlink in case when the other object will be imported during the merge session- Returns:
- a matching symbolic links object or
null
if the context is not supported by the contributor
-
getMatchingSymlinksToTopObject
IMatchingSymlinks getMatchingSymlinksToTopObject(ComparisonContext comparisonContext, String symlink, ComparisonSide side, IMergeSession mergeSession)
Returns matched symlinks to the top object with the given symlink on a given comparison side.- Parameters:
comparisonContext
- the comparison context, cannot benull
symlink
- the top object symlink to be matched, cannot benull
side
- the comparison side where the top object lies, cannot benull
mergeSession
- the merge session, can benull
if no merge process run- Returns:
- the triple of matched symlinks or
null
if no matched symlinks found
-
-