Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » [Papyrus diagram]Explaination needed of Shape (null) / Connector (null) entries in comparison editor
[Papyrus diagram]Explaination needed of Shape (null) / Connector (null) entries in comparison editor [message #1750046] Thu, 15 December 2016 12:52 Go to next message
Thomas Wiman is currently offline Thomas WimanFriend
Messages: 83
Registered: June 2012
Location: Stockholm , Sweden
Member

Occasionally, I got cryptical entries in the comparison editor saying shape(null) / connector (null) added or deleted.

See attached screenshot from Comparison editor:

They seems to be related to stereotype comments or stereotype comment links being added to the diagram (.notation-file) under the hood in some situations. Can the reason be that the applied profile is unavailable/unresolved in some compare/merge scenarios? The profile is in another project but in the same repo.
I can also mention that the comparison of .uml-files works fine. The only issues are with the -notation-files

I need some explanation why this is happening and if there is a way to avoid those cryptical entries. Am I doing something wrong?

I am running the EMF Compare 3.3.0 Integration build on Papyrus 2.0.1/Neon.1

Thanks
Thomas


Thomas Wiman
MetaModelAgent Product Manager
Re: [Papyrus diagram]Explaination needed of Shape (null) / Connector (null) entries in comparison ed [message #1750126 is a reply to message #1750046] Fri, 16 December 2016 09:53 Go to previous messageGo to next message
Philip Langer is currently offline Philip LangerFriend
Messages: 99
Registered: March 2015
Location: Vienna, Austria
Member

Hi Thomas,

yes, I get those too occasionally. In most of the cases that I've seen, these are mostly invisible shapes / connectors that part of the representation of a certain UML concept; often -- as you say -- related to stereotype comments. They often don't have a direct semantic model element, which is why the label is cryptically called "null". Usually it also doesn't matter whether they are merged or not, since they are invisible and they'd just be re-created the next time you open the diagram.

To address this problem, we need to collect a list of examples in which they appear and analyse when they are added. If they are added each time a certain shape that represents a certain UML concept are added, we have to introduce a customization to group them and handle them as one logical difference (i.e., accepting and rejecting them as a whole). I'm afraid that we'll not be able to put one solution in place that rules them all. I believe we'll have to incrementally handle and customize those case by case.

We also ran into a few cases, where certain notation elements are added at the first time the user, for instance, adds a child to a compartment. But for the second, third, etc. child, they will not be added again. These cases are then often related to styling and layout of the compartment and will be a bit more difficult to handle (simple grouping of differences is not enough, EMF Compare has to know that these additional changes have to be applied whenever one of the children is to be added). We are currently investigating how to solve such a case in Papyrus-RT.

It would be great, if you could create a bug report for this general problem and attach an example repo. If you encounter additional cases, please attach more than one example repo. This way we can collect the cases and investigate how to tackle them case by case.

Thanks and best wishes,

Philip

--
Philip Langer

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/


--
Philip Langer

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [Papyrus diagram]Explaination needed of Shape (null) / Connector (null) entries in comparison ed [message #1750144 is a reply to message #1750126] Fri, 16 December 2016 11:15 Go to previous messageGo to next message
Thomas Wiman is currently offline Thomas WimanFriend
Messages: 83
Registered: June 2012
Location: Stockholm , Sweden
Member

Thanks Philip for your elaboration on this issue.
I certainly understand that it is difficult to implement a solution for this kind of behavior. Especially when it seems to be a bit random.
I have observed it several times in my customer´s model, which I can't share. And when I have tried to reproduce it in a simple sample model, it will not appear Sad
I will register a bug report with a repo, as soon as I am available to make it appear in a sample model that can be shared.

Thomas


Thomas Wiman
MetaModelAgent Product Manager
Re: [Papyrus diagram]Explaination needed of Shape (null) / Connector (null) entries in comparison ed [message #1750237 is a reply to message #1750144] Mon, 19 December 2016 08:48 Go to previous message
Philip Langer is currently offline Philip LangerFriend
Messages: 99
Registered: March 2015
Location: Vienna, Austria
Member

Hi Thomas,

great, thanks a lot for your effort!

Best wishes,

Philip

--
Philip Langer

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/


--
Philip Langer

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:EMFCompare
Next Topic:Automatically accept all non-conflicting changes
Goto Forum:
  


Current Time: Thu Mar 28 08:33:22 GMT 2024

Powered by FUDForum. Page generated in 0.03964 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top