Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] "Turn into XXX" - an ability to replace semantic element with similar element of different type?

Hi Camille,

Sorry to step in, but EMF Compare plays well with Papyrus Luna. It just can’t start a comparison from an empty file. Indeed, the DI files are now empty (as you said). It does not hold any (EMF) reference to the .notation and .uml anymore, so there is no "EMF" way to find these files now. If you ask for the comparison on the .notation or .uml, EMF Compare works as expected.

As long as the .di is just an empty file now, is it really still necessary on your side? I acknowledge that you may need to change a lot of code to remove its support, but I don’t see any added value to it anymore (what could be the added value of an empty file anyway). You could still use the CNF’s Navigator Content Extensions to create a "virtual" node for .notation + .uml without needing the .di, isn’t it. 

I think the complete removal of .di would be great. Papyrus end users would not be confused by some empty files for backward compatibility reasons and EMF Compare would play even better with Papyrus.

Regards,
Mikael


Le 20 oct. 2014 à 09:44, LETAVERNIER Camille <Camille.LETAVERNIER@xxxxxx> a écrit :

Hi all,
 
 
There is a component which has been developed a few months ago, to support refactorings in Papyrus (With change previews). The only issue is that it relies on EMF Compare to do the preview, but EMF Compare doesn’t play well with Papyrus Luna (Because of the DI model change). So, the component has not been pushed yet. However, I’ve not checked EMF Compare again since Luna SR1, so the issue may be solved now.
 
The refactoring framework currently comes with one specific refactoring operation, with is the “Turn into X”. Currently, it only supports the semantic part (Graphical elements are removed from the diagrams to avoid inconsistencies)
 
 
Regards,
Camille
 
De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx] De la part de Cedric Dumoulin
Envoyé : jeudi 9 octobre 2014 15:35
À : Papyrus Project list
Objet : Re: [mdt-papyrus.dev] "Turn into XXX" - an ability to replace semantic element with similar element of different type?
 


A long time ago in a galaxy far, far away ....

  .... Such feature was in Papyrus !

 But I don't know why one day it has disapear (May be the dark side of Papyrus) :-).

   Cedric

Michael Golubev a écrit :
I suspect that this feature may be already discussed somewhere but haven't found the right place, sorry for that.

I see a lot of use cases where user may need to change the type of the existing semantic element, e.g from DataType to Class, or from OpaqueAction to <some-specific>Action, or from InputPin to OutputPin, etc.

You always can create the new element and delete the old one, but then you need to manually deal with the contents of the old element and with the references from and to the old element. 

Here is the set of challenges for user with this approach: 
- the contents is the simplest case, inner elements may be cut-pasted in model explorer
- (also some of the contained elements may be not applicable to the new container type)
- the outgoing references may be fixed (with pain) by comparing the property sheet for old and new element
- the incoming references are the hardest case for user and I don't see at all how user can be ensured that all of them are dealt with.
- worse, there may be diagrams that show the old element (so some incoming references may be non-semantic). These diagrams will not show the replaced element and user can't easily fix this problem at all.

Should not Papyrus provide the set of "Turn Into XXX" actions that will assist user in such conversions? And what is the right place to discuss this? 

Regards, 
Michael 

-- 
Michael "Borlander" Golubev
Eclipse Committer (GMFT)
at Montages Think Tank, Prague, Czech Republic
1165/1 Dvorecka, 14700, Prague-4 Podoli
 
tek: +420 602 483 463
 



_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev
 
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev


Back to the top