Hi, Would it be possible to include this template in the cartridge itself. That way i could be calling it very easily. I think the main Root belongs to the cartridge itself anyway or am i mistaken?
Regards, attila > You can use your own root template. E.g. copy the one out of the > Spring-Cartridge and add something like these: > > >> /** >> * The entry point for the generation >> */ >> ŤDEFINE Root FOR uml::Modelť >> ŤEXPAND Root FOREACH (List[uml::Package])ownedElementť >> ŤENDDEFINEť >> >> /** >> * Creates all packages >> */ >> ŤDEFINE Root FOR uml::Packageť >> ŤEXPAND Root FOREACH ownedType.typeSelect(uml::Interface)ť >> ŤEXPAND Root FOREACH ownedType.typeSelect(JavaBasic::Entity)ť >> ŤEXPAND Root FOREACH ownedType.typeSelect >> (uml::Class).select(e|e.getAppliedStereotypes().isEmpty)ť >> ŤEXPAND Root FOREACH ownedType.typeSelect(uml::Enumeration)ť >> ŤEXPAND Root FOREACH nestedPackageť >> ŤEXPAND Root FOREACH ownedType.typeSelect(JavaBasic::Exception)ť >> ŤENDDEFINEť >> >> /** >> * Creates all interfaces >> */ >> ŤDEFINE Root FOR uml::Interfaceť >> ŤEXPAND >> org::fornax::cartridges::uml2::javabasic::templates::Interface::interfaceť >> ŤENDDEFINEť >> >> /** >> * Creates all classes >> */ >> ŤDEFINE Root FOR uml::Classť >> ŤEXPAND >> org::fornax::cartridges::uml2::javabasic::templates::Class::classť >> ŤENDDEFINEť >> >> /** >> * Create the interface, the abstract and the basic implementation >> */ >> ŤDEFINE Root FOR JavaBasic::Entityť >> ŤEXPAND >> org::fornax::cartridges::uml2::javabasic::templates::Entity::interfaceť >> ŤEXPAND >> org::fornax::cartridges::uml2::javabasic::templates::Entity::abstractClassť >> ŤEXPAND >> org::fornax::cartridges::uml2::javabasic::templates::Entity::basicClassť >> ŤENDDEFINEť >> >> /** >> * Create the exception classes >> */ >> ŤDEFINE Root FOR JavaBasic::Exceptionť >> ŤEXPAND >> org::fornax::cartridges::uml2::javabasic::templates::Exception::exception( >> this.isUnchecked)ť >> ŤENDDEFINEť >> >> /** >> * Create the enumerations >> */ >> ŤDEFINE Root FOR uml::Enumerationť >> ŤEXPAND >> org::fornax::cartridges::uml2::javabasic::templates::Enum::enumť >> ŤENDDEFINEť >> >> >> /** >> * Dummy DEFINE for all elements with no generation purposes >> */ >> ŤDEFINE Root FOR Objectť >> ŤENDDEFINEť > > > > Thorsten > > > > -- > Thorsten Kamann > Software-Architect, Consultant, Coaching > Germany, NRW > > Business: > itemis products and solutions GmbH & Co. KG | Heinrichstraße 51 | 44536 > Lünen > > Rechtlicher Hinweis: > Amtsgericht Dortmund, HRA 15841 > P.h.G.: Komplementär: itemis management GmbH | Amtsgericht Dortmund HRB > 18939 | Geschäftsführer Jürgen Rödl > > Personal: > [EMAIL PROTECTED] > http://www.thorsten-kamann.de/ > callto://thorque > > Fornax-Platform - Platform for developing MDSD-related Tools and > components > http://www.fornax-platform.org/ > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4_______________________________________________ > Fornax-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fornax-developer > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Fornax-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fornax-developer
