Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] usage of org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings extension point

Hello everyone,

I noticed an incorrect use of the org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings extension point in plugins org.eclipse.papyrus.uml/sysml.service.types.

I could easily fix the extension myself, but it looks like the plugin.xml file has been generated (at least, this is what the nearby xmlElementTypes.xml file and the model directory suggest). As I do not know how it has been generated, I do not wish breaking the generation process in place.


Does anyone know how to regenerate the plugin.xml file's content to correct it in both plugins ?


The error itself is (for example in uml) at line :
<elementType pattern="org.eclipse.papyrus.uml.*" />
Indeed, the pattern attribute should be a real regular expression.
Hence, the line should be
<elementType pattern="org\.eclipse\.papyrus\.uml\..*" />
(I already tested this code successfully).
Current extension works only by luck, because string "." (the . character) matches the regular expression "." (any character). Which means "orgaeclipsexpapyrusyuml" would also match the current expression...


Thanks in advance.

Best regards,
Vincent.

--


	*Hémery Vincent*
*Ingénieur - Atos Origin*
Telephone : +33 (0) 5 34 36 32 90
www.atosorigin.fr <http://www.atosorigin.fr>

Développement durable, anticipons pour notre avenir / Sustainability,
advance our future
P N'imprimez ce mail que si nécessaire / please consider your
environmental responsibility before printing this e-mail.
Ce message et les pièces jointes sont confidentiels et réservés à
l'usage exclusif de ses destinataires. Il peut également être protégé
par le secret professionnel. Si vous recevez ce message par erreur,
merci d'en avertir immédiatement l'expéditeur et de le détruire.
L'intégrité du message ne pouvant être assurée sur Internet, la
responsabilité du groupe Atos Origin ne pourra être recherchée quant au
contenu de ce message. Bien que les meilleurs efforts soient faits pour
maintenir cette transmission exempte de tout virus, l'expéditeur ne
donne aucune garantie à cet égard et sa responsabilité ne saurait être
recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in error, please notify the sender immediately and destroy it. As
its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the sender
does not warrant that this transmission is virus-free and will not be
liable for any damages resulting from any virus transmitted.



Back to the top