Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] Re: [Fwd: Control action from EMF with notation model]

Hi Ed,

We plan to set up a control mode feature in MDT Papyrus project. Use the GMF notation model is a problem for us without control behavior.
Does the gmf team plan to upgrade/work on the notation meta model to enable the control mode ?

What do you advice us to use it in Papyrus project ?
I'm not sure that override the notation meta model according to our needs is the right thing to do.
Is there another way to enable it without affecting the GMF code ?

Thanks,

Ed Merks a écrit :
Emilien,

Support for cross document containment was added long after the Ecore model was already quite mature. At that point we decided that we could use the proxy resolve feature to change the behavior of adding an object to a resource's contents.  Up until that point, the generator simply generated this feature to be false, regardless of the value in the Ecore model, and dynamic EMF ignored the feature.  So when we change this behavior, we added the "Containment Proxies" property to the GenModel to indicate whether the generator should respect containment references with resolve proxies true or behave in the old way.  The notation model didn't take advantage of this and might not want to because proxy resolves have a performance impact...


Emilien Perico wrote:
Hi,

We are currently working on the control mode for MDT Papyrus project, unfortunately the control action is not available for notation model.

I posted on GMF newsgroup to get information about the action (my message below)
Do you have any clue about this point ?

Thanks for your help.

Emilien.


-------- Message original --------
Sujet : Control action from EMF with notation model
Date : Wed, 12 Aug 2009 15:59:49 +0000 (UTC)
De : emilien.perico@xxxxxxxxxxxxxx (Emilien Perico)
Organisation : Eclipse
Forum : eclipse.modeling.gmf

Hi all,

I would like to use the control action (from EMF ControlAction) in a gmf
notation model.

Unfortunately, the control action (Right Click on element > Control) is
not available on notation model.

An object is controllable if its container can resolve Proxies
(eObject.eContainmentFeature().isResolveProxies()).

Control a notation.Diagram should be consistent, but I saw that the
resolve proxies property is true in metamodel but set to false in the code
here:
org.eclipse.gmf.runtime.notation.impl.NotationPackageImpl.initializePackageContents

Model code generation is overridden by a template (PackageClass.javajet)
that set to false the resolve proxies property.

Why this property is set to false ?
Is there a reason to override this property value ?
Is there another way to enable the control action ?

Thanks,

Emilien Perico




--
Emilien PERICO
Ingénieur - Atos Origin
Tel : 05 34 36 34 49
www.atosorigin.fr
Développement durable, anticipons pour notre avenir / Sustainibility, 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