|
Re: Registering compare [message #696260 is a reply to message #633901] |
Wed, 13 July 2011 15:19 |
Cedric Brun Messages: 431 Registered: July 2009 |
Senior Member |
|
|
Hi Miles. I realize that's a pretty late answer but I just came upon this newsgroup, EMF compare is using the EMF one (and used to use the EMFT one).
For the record, yes you should either extend the EMF Compare content type directly and then the platform should call EMF compare, or specify the compare merger with your own content type like this :
<extension
point="org.eclipse.compare.contentMergeViewers">
<viewer
class="org.eclipse.emf.compare.ui.viewer.content.ParameterizedContentMergeViewerCreator"
id="org.eclipse.emf.compare.ui.contentmergeviewer.ModelContentMergeViewer"/>
<contentTypeBinding
contentMergeViewerId="org.eclipse.emf.compare.ui.contentmergeviewer.ModelContentMergeViewer"
contentTypeId="org.eclipse.emf.compare.ui.contenttype.ModelContentType"/>
<contentTypeBinding
contentMergeViewerId="org.eclipse.emf.compare.ui.contentmergeviewer.ModelContentMergeViewer"
contentTypeId="org.eclipse.emf.ecore"/>
<contentTypeBinding
contentMergeViewerId="org.eclipse.emf.compare.ui.contentmergeviewer.ModelContentMergeViewer"
contentTypeId="org.eclipse.emf.ecore.xmi">
</contentTypeBinding>
</extension>
<extension
point="org.eclipse.compare.structureMergeViewers">
<viewer
class="org.eclipse.emf.compare.ui.viewer.structure.ParameterizedStructureMergeViewerCreator"
extensions="*"
id="org.eclipse.emf.compare.ui.structuremergeviewer.ModelStructureMergeViewer"/>
<contentTypeBinding
structureMergeViewerId="org.eclipse.emf.compare.ui.structuremergeviewer.ModelStructureMergeViewer"
contentTypeId="org.eclipse.emf.compare.ui.contenttype.ModelContentType"/>
<contentTypeBinding
structureMergeViewerId="org.eclipse.emf.compare.ui.structuremergeviewer.ModelStructureMergeViewer"
contentTypeId="org.eclipse.emf.ecore"/>
<contentTypeBinding
contentTypeId="org.eclipse.emf.ecore.xmi"
structureMergeViewerId="org.eclipse.emf.compare.ui.structuremergeviewer.ModelStructureMergeViewer">
</contentTypeBinding>
</extension>
http://cedric.brun.io news and articles on eclipse and eclipse modeling.
|
|
|
Powered by
FUDForum. Page generated in 0.02545 seconds