Nathan Coast wrote:
Hi,

I am developing a cartridge with a template that needs to navigate the package hierarchy. My facade extends org.andromda.metafacades.uml.PackageFacade. However, when I refer to ${myPackage.subPackages}, an empty ArrayList is returned.

I placed various debug in my template to confirm I was calling 'getSubPackages' on a package that should contain subPackages

package class ${module.class}
package name ${module.name}
subPackages class ${module.subPackages.class}
size ${module.subPackages.size()}

In my model, the package assigned to the 'module' variable has two direct sub-packages in the package hierarchy, yet '${module.subPackages.size()} outputs '0'.

Is there something else I need to do in magic draw to associate sub-packages to their parent, or have I misunderstood the intent of 'subPackages'.

thanks
Nathan



sounds like a bug so I tried it myself and I have the same problem (although the implementation of that method looks fine to me), strange


anyway, I'm looking into it now, you can track this issue here:
http://jira.andromda.org/browse/UMLMETA-30

-- Wouter


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to