Hi,

no, it's not possible to have the completion on docbook part actually.

Best Regards,

Thibault

[email protected] a écrit :

Thanks Thibault.

In the same way is it possible to have the code assist for the XML part of the file ?

Regards,
Arnaud

[email protected] a écrit sur 22/04/2009 11:39:33 :

 > Hi,
 >
 > it is possible to have the code assist on your UML metamodel but you
 > have to configure your project to activate it.
 >
 > In your project properties, configure openarchitectureware as described
 > in the capture attached to this mail.
 >
 > Best Regards,
 >
 > Thibault
 >
 >
 > [email protected] a écrit :
 > >
 > > Hi,
 > >
 > > I'm currently developping a model documentation using xpt files.
 > > I've got an UML model in topcased and I want to use xpand files to
 > > generate my docbook files.
 > > My xpt file looks like:
 > > «IMPORT uml»
 > >
 > > «DEFINE Root(String fileName) FOR Package»
 > >         «FILE fileName+".docbook"        -»
 > > <?xml version='1.0' encoding="ISO-8859-15" ?>
 > > <book lang="en">
 > >                 «EXPAND PackageRoot FOREACH ownedElement-»
 > > </book>
 > >         «ENDFILE»
 > > «ENDDEFINE»
 > >
 > > «DEFINE PackageRoot FOR Package-»
 > >         <chapter id="id«name»">
 > >                 <title>Content of the Package «name»</title>
 > >                 <para>Here is the first paragraph of the Root
 > > element.</para>
 > >                 «EXPAND ClassesContentsInTableTemplate-»
 > >                 «EXPAND PackageLevel(1) FOREACH ownedElement-»
 > >         </chapter>
 > > «ENDDEFINE»
 > >
 > > «DEFINE PackageRoot FOR Element»
 > > «ENDDEFINE»
 > >
 > > «DEFINE PackageLevel(int level) FOR Package-»
 > >         «IF level<6-»
 > >         <sect«level» id="«name»">
 > >                 <title>Content of the Package «name»</title>
 > >                 «EXPAND ClassesContentsInTableTemplate-»
 > >                 «EXPAND PackageLevel(level+1) FOREACH ownedElement-»
 > >         </sect«level»>
 > >         «ENDIF»
 > > «ENDDEFINE»
 > >
 > > «DEFINE PackageLevel(int level) FOR Element»
 > > «ENDDEFINE»
 > >
 > >
 > > «DEFINE ClassTemplate FOR Class-»
 > >                                         <row>
 > >                                                 <entry>«name»</entry>
> > > > <entry>«visibility.toString()»</entry> > > > > <entry>«isAbstract.toString()»</entry>
 > >                                         </row>
 > > «ENDDEFINE»
 > >
 > > «DEFINE ClassTemplate FOR Type»
 > > «ENDDEFINE»
 > >
 > >
 > > «DEFINE ClassesContentsInTableTemplate FOR Package»
 > >                 <table>
> > <title>List of classes contained in the Package
 > > «name»</title>
 > >                         <tgroup cols="3">
 > >                                 <thead>
 > >                                         <row>
> > <entry>Class name</entry> > > <entry>Visibility</entry> > > <entry>IsAbstract</entry>
 > >                                         </row>
 > >                                 </thead>
 > >                                 <tbody>
> > «EXPAND ClassTemplate FOREACH ownedType»
 > >                                 </tbody>
 > >                         </tgroup>
 > >                 </table>
 > > «ENDDEFINE»
 > >
> > I can use code assist for the xpand language words (DEFINE, IF ...) but
 > > I also want to have it for the Package ... elements from the uml
 > > metamodel, is it possible ?
 > >
 > >
> > ------------------------------------------------------------------------
 > >
 > > _______________________________________________
 > > Topcased-users mailing list
 > > [email protected]
 > > http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
 > [rattachement "configurationRequired.png" supprimé par Arnaud
 > Dieumegard/usr/cag] [rattachement "thibault.landre.vcf" supprimé par
> Arnaud Dieumegard/usr/cag] _______________________________________________
 > Topcased-users mailing list
 > [email protected]
 > http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users


------------------------------------------------------------------------

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
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:[email protected]
tel;work:+33 (0)5.34.36.34.46
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 groupeAtosOri=
	gin ne pourra =C3=AAtre recherch=C3=A9e quant au contenu de cemessage.=
	 Bien que les meilleurs efforts soient faits pour maintenir cette transmi=
	ssion 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

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to