Interface ISymlinkTranslationContributor
-
public interface ISymlinkTranslationContributorA 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 IMatchingSymlinksgetMatchingSymlinks(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.IMatchingSymlinksgetMatchingSymlinksToTopObject(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 benullmergeSession- 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
nullif 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 benullsymlink- the top object symlink to be matched, cannot benullside- the comparison side where the top object lies, cannot benullmergeSession- the merge session, can benullif no merge process run- Returns:
- the triple of matched symlinks or
nullif no matched symlinks found
-
-