great stuff,
changed the code, all works perfectly now. How often do the SNAPSHOT jars get updated? Or, another way, when can I expect this fix to reach the andromda binary repo?
thanks again Wouter for the speedy fix
Wouter Zoons wrote:
I found the problem,
JMI defines two interfaces called UmlPackage (one for packages and one for models), the method was filtering out the models instead of the package because we weren't properly qualifying the type (the model type was imported so package types need to be fully qualified in the Java code, and this was not the case)
thanks for the bug-report, I'm fixing it now
-- Wouter
Wouter Zoons wrote:
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
------------------------------------------------------- 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
