Custom
Comparator that operates on
MStringModelFragment model
fragments wrapped in a
ModelFragmentWrapper. The comparator will
order the fragments in the logical way in which they should be merged, based
on their defined
positionInList , as follows:
Index - all elements with an index are merged first. Lowest to
highest index.
No position defined - all contributions without any information
are sorted in the order in which they are read from the extension points and
added to the end of the list
First/Last - all elements with a first/last tag. If there are
several elements in the same container with the same tag, then those elements
are sorted in the order as they come form the extension registry.
After/Before - the after and before contributions are ordered
considering potential dependencies between fragments. If the dependency is
not resolvable eg points to the application model the element is sorted to
the front of the after/before list.