you have 2 graphs in the same use-case ?


that's allowed but only the first one will be considered, here's the code that 
is responsible for that:



    /**

     * @see 
org.andromda.metafacades.uml.FrontEndUseCase#getActivityGraph()

     */

    protected java.lang.Object handleGetActivityGraph()

    {

        ActivityGraphFacade activityGraph = null;



        // - in case there is a tagged value pointing to an 
activity graph, and this graph is found,

        //   return it.

        final Object activity = 
findTaggedValue(UMLProfile.TAGGEDVALUE_PRESENTATION_USECASE_ACTIVITY);

        if (activity != null)

        {

            final String activityName = 
String.valueOf(activity.toString());

            activityGraph = 
getModel().findActivityGraphByName(activityName);

        }



        // - otherwise just take the first one in this 
use-case's namespace.

        if (activityGraph == null)

        {

            final Collection ownedElements = 
this.getOwnedElements();

            for (final Iterator iterator = 
ownedElements.iterator(); iterator.hasNext();)

            {

                final Object object = 
iterator.next();

                if (object 
instanceof FrontEndActivityGraph)

                {

                    return 
object;

                }

            }

        }

        return activityGraph;

    }


--
Wouter Zoons - [EMAIL PROTECTED]

http://www.andromda.org/
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2857#2857
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to