Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re : [mdt-papyrus.dev] Custom code and code generation

Hi Patrick,

First of all, my best wishes for this new year :)

I think you are right. It would be easier to maintain.

I have overriden the GMF generation templates (and add some of mine) to generate the preference along with the papyrus editor.

You should have a look to the plugin :
org.eclipse.papyrus.codegen
org.eclipse.papyrus.def
which are available on the svn (https://speedy.supelec.fr/Papyrus/svn/Papyrus/core/experiment/papyrus-gmf)

The first plugin (codegen) is a plugin to add a new specific Papyrus menu for the generation. It also allows Papyrus developpers to add their templates (generating your own classes) to the GMF generation.

The second plugin (def) is a plugin containing the modified templates (the GMF template that I have overriden) and the new templates used to generate the preference classes. I also included in this plugin the gmf configuration files for generating the Preference with the Papyrus generator.


For extending the GMF Gen metamodel, I don't know how to do.

You can call me if you have questions about the generation.

Best Regards,

Thibault
begin:vcard
fn;quoted-printable:Thibault Landr=C3=A9
n;quoted-printable:Landr=C3=A9;Thibault
org:Atos Origin - Agence Sud-Ouest ;Systems Integration
adr;quoted-printable;quoted-printable:5, avenue Albert Durand ;;Batiment A=C3=A9ropole ;Blagnac;Midi-Pyr=C3=A9n=C3=A9es;31701;France
email;internet:thibault.landre@xxxxxxxxxxxxxx
tel;work:+33 (0)5.34.55.82.23
note;quoted-printable:D=C3=A9veloppement durable, anticipons pour notre avenir / Sustainibility=
	, advance our future=0D=0A=
	P N'imprimez ce mail que si n=C3=A9cessaire / please consider your enviro=
	nmental responsibility before printing this e-mail.=0D=0A=
	Ce message et les pi=C3=A8ces jointes sont confidentiels et r=C3=A9serv=C3=
	=A9s =C3=A0 l'usage exclusif de ses destinataires. Il peut =C3=A9galement=
	=C3=AAtre prot=C3=A9g=C3=A9 par le secret professionnel. Si vous recevezc=
	e message par erreur, merci d'en avertir imm=C3=A9diatement l'exp=C3=A9di=
	teur et de le d=C3=A9truire. L'int=C3=A9grit=C3=A9 du message ne pouvant=C3=
	=AAtre assur=C3=A9e sur Internet, la responsabilit=C3=A9 du groupeAtos=
	 Origin ne pourra =C3=AAtre recherch=C3=A9e quant au contenu de cemessage=
	. Bien que les meilleurs efforts soient faits pour maintenir cette transm=
	ission exempte de tout virus, l'exp=C3=A9diteur ne donne aucunegarantie=C3=
	=A0 cet =C3=A9gard et sa responsabilit=C3=A9 ne saurait =C3=AAtre recherc=
	h=C3=A9e pour tout dommage r=C3=A9sultant d'un virus transmis.=0D=0A=
	=0D=0A=
	This e-mail and the documents attached are confidential and intended sole=
	ly for the addressee, it may also be privileged. If you receive this e-ma=
	il in error, please notify the sender immediately and destroy it. As itsi=
	ntegrity cannot be secured on the Internet, the Atos Origin group liabili=
	ty cannot be triggered for the message content. Although the sender endea=
	vours to maintain a computer virus-free network, the sender does notwarra=
	nt that this transmission is virus-free and will not be liable forany dam=
	ages resulting from any virus transmitted.
url:http://www.atosorigin.com/
version:2.1
end:vcard


Back to the top