Hi Michiel and all!

-------- Original-Nachricht --------
> Datum: Sat, 30 May 2009 08:03:33 +0200
> Von: Michiel van der Wulp <[email protected]>
> An: [email protected]
> Betreff: Re: [argouml-dev] Remove \'create activity diagram\' from main menu?

--<snip>--

> This is an old discussion. Please read the history about ArgoUML's
> behaviour in issue 2225:
> http://argouml.tigris.org/issues/show_bug.cgi?id=2225

Thanks for the pointer! 

--<snip>--

> In the issue mentioned above, I spoke about creating a class as context
> in the currently selected namespace; you can still do that and create an
> operation in the class to hook the activity to.
> Part of this solution is that it shall be easy for the user to move the
> activity to another operation!

Yeah, that should be feasable. But it's another distinguish between UML14 and 
UML2 in the code.

> Beware: Only create the class & operation IF needed to produce a valid
> XMI - NOT for well-formedness.

At this point, I don't think the XMI is the problem. It's the Argo code to 
create diagrams, that
requires the namespace:

DiagramFactory.getInstance().createDiagram( DiagramFactory.DiagramType.Activity,
                                                                                
Model.getFacade().getNamespace(graph), 
                                                                                
graph);

And since graph is now a UML2 activity (without any assigned namespace), this 
call fails.

Maybe we could create a baviored classifier to store the namespace in, as 
Thomas suggested, but
I doubt that's it's a 1:1 replacement, since the whole navigation is different 
then.

I'll think about it further and study the UML2 docs to find a better solution.

Ciao,
Andreas

-- 
Nur bis 31.05.: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und
Telefonanschluss nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2357099

To unsubscribe from this discussion, e-mail: 
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email: 
[[email protected]]

Reply via email to