Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » EMF Compare models containing "Non-Model Intermediary View Objects"
EMF Compare models containing "Non-Model Intermediary View Objects" [message #998604] Thu, 10 January 2013 05:37 Go to previous message
Dr. Rossi
Messages: 2
Registered: January 2013
Junior Member
I am trying to compare 2 models using EMF CompareUI release 2.1M4.

For my custom model I have created an editor containing "Non-Model Intermediary View Objects". These objects are more or less vitual folders containing the real eCore objects. The whole concept is described in the "EMF - Eclipse Modeling Framework - Second Edition - chapter 19.2.3". This works fine.

When I try to compare the model objects, for a standard object the custom editor is opened in a TreeContentMergeViewer using my custom editor. But when I select a feature that is contained within a "Non-Model Intermediary View Object", a default text compare editor is used, that contains the wrong data.

As far as I understand the problem is, that the CompareUI is unable to determine the correct content type from the ITypedElement for the parent "Non-Model Intermediary View Object" (see CompareUIPlugin.getCommonType() and CompareUIPlugin.getTypes() ). So it uses ITypedElement.TEXT_TYPE as fallback content type instead.

My question is, how can I display a TreeContentMergeViewer using my custom editor, when "Non-Model Intermediary View Objects" are used:

A) Is it a bug in CompareUI?

B) In order to diplay my custom editor, should my "Non-Model Intermediary View Objects" return ITypedElement.FOLDER_TYPE as their type? How do I do that?

C) Do I have to override e.g. DiffElement in order make CompareUI determine the real ecore parent or correct type? If yes, what do I have exactly to do?


Thanks for your help...
 
Read Message
Read Message
Previous Topic:How to integrate emf compare with eclipse team support?
Next Topic:EMF Compare bugzilla change
Goto Forum:
  


Current Time: Thu May 23 12:54:33 EDT 2013

Powered by FUDForum. Page generated in 0.01680 seconds