Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » [Papyrus 2.0] How do I change numeric type id:s to symbolic dito in the notation file
[Papyrus 2.0] How do I change numeric type id:s to symbolic dito in the notation file [message #1748110] Fri, 18 November 2016 14:25 Go to next message
Thomas Wiman is currently offline Thomas WimanFriend
Messages: 41
Registered: June 2012
Location: Stockholm , Sweden
Member

Papyrus has obviously change the representation of type id of graphical elements in diagrams from a numeric to logic names. E.g type="8503" is now type="Component_FloatingNameLabel".
Papyrus 2.0.1 can still read and understand notation files with numerical type id:s, but when a diagram is edited in some way, all identities are automatically converted to the new type id representation. However, if you try to compare a model using EMF Compare with diagrams that have been created in v1.1 and only slightly modified in v2.0 All graphical elements are notated as "type changed", and the graphical comparison view fails completly.

My question is: Is there a way to automatically modify all type id:s in a notation file to the new format, instead to having to step through all diagrams manually and do a fake edit, to reduce the problem with future comparisons?


Thomas Wiman
MetaModelAgent Product Manager
Re: [Papyrus 2.0] How do I change numeric type id:s to symbolic dito in the notation file [message #1748209 is a reply to message #1748110] Mon, 21 November 2016 09:00 Go to previous messageGo to next message
Philip Langer is currently offline Philip LangerFriend
Messages: 88
Registered: March 2015
Location: Vienna, Austria
Member

Hi Thomas,

Simon is currently working on an extension of EMF Compare to automatically migrate the diagram before merges and comparisons (see https://git.eclipse.org/r/#/c/84294).

In his Gerrit change, you can also see the code necessary to walk through all resources of a Papyrus model and apply the migration using the DiagramReconciler (see https://git.eclipse.org/r/#/c/84294/2/plugins/org.eclipse.emf.compare.diagram.ide.ui.papyrus/src/org/eclipse/emf/compare/diagram/ide/ui/papyrus/internal/DiagramMigrationHook.java). Based on this code, you could create a plug-in that does the same thing in order to migrate the entire workspace with one click rather than having to open each diagram manually.

Hope this helps!

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 2.0] How do I change numeric type id:s to symbolic dito in the notation file [message #1748213 is a reply to message #1748209] Mon, 21 November 2016 09:08 Go to previous messageGo to next message
Quentin Le Menez is currently offline Quentin Le MenezFriend
Messages: 47
Registered: September 2014
Location: Paris Saclay, France
Member
Hi Thomas,

There is no independent migration tool to do that in bulk, it is done by the reconcilier upon opening a diagram. If you are interested you can check out the corresponding labels in the xls file either in the wiki [1] or in the git repository [2].
You could always call the reconcilier programatically and feed it your diagrams though. Usually its in the uml/diagram/[diagram type] under the migration package.

[1] https://wiki.eclipse.org/Papyrus/Migration_Guide/Neon#VisualID_Migration > (File:Mars to Neon VisualID Mappings.zip)
[2] plugins\developer\org.eclipse.papyrus.dev.types\transforms\VisualID Migration\VisualIDs_1.1_To_2.0.xlsx

[Updated on: Mon, 21 November 2016 09:17]

Report message to a moderator

Re: [Papyrus 2.0] How do I change numeric type id:s to symbolic dito in the notation file [message #1748247 is a reply to message #1748110] Mon, 21 November 2016 15:16 Go to previous message
Peter Cigehn is currently offline Peter CigehnFriend
Messages: 49
Registered: September 2014
Member
Thomas Wiman wrote on Fri, 18 November 2016 14:25

My question is: Is there a way to automatically modify all type id:s in a notation file to the new format, instead to having to step through all diagrams manually and do a fake edit, to reduce the problem with future comparisons?


This sounds like the same issue brought up in https://bugs.eclipse.org/bugs/show_bug.cgi?id=505358. Maybe you can provide some feedback as well to this bug?

/Peter Cigéhn
Previous Topic:ValuePin and ActionInputPin in Moka
Next Topic:Cannot drag typed property in IBD
Goto Forum:
  


Current Time: Mon Jan 20 06:31:07 GMT 2020

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

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

Back to the top