Hi Olivier,

associations are created during import of Java sources. In case of instance 
variables, there is a setting that controls whether the variable is mapped to 
an UML attribute or association. You can find the setting in the import dialog, 
in the second settings tab (labelled "Java").

You can check a UML class for associations by selecting the class and looking 
in it's property panel at the bottom: watch the "Association Ends" list. If you 
miss the respective association(s) on the diagram, then the class and the 
associated element (e.g. another class) are not on the same diagram. Please 
check that, and if you want them on one diagram, then drag them to any class 
diagram you want.

If you right-click the association in the explorer pane at the left (provided 
you found it there, e.g. via navigating from the mentioned association end in 
the list), you'll even find menu items in the popup menu to add the owners of 
the association ends and the association itself to the diagram.

The import just created class diagram with classes/interfaces/enumerations of 
the same package, which is often the reason why most assotiations do not appear 
on the diagrams.

Regards,
Thomas

-------- Original-Nachricht --------
> Datum: Mon, 29 Jun 2009 15:17:34 +0200
> Von: Olivier Cailloux <[email protected]>
> An: [email protected]
> Betreff: [argouml-users] Automatic associations?

> Dear list,
> 
> I am happily discovering argo and find it a very nice software. I have a 
> lot of java code I would like to import into argo to simplify drawing 
> diagrams for refactoring and post-hoc documenting.
> 
> When importing the code however, argo does not add any associations 
> between classes. I would like that pointers from one class to an other 
> (say, class A has an instance variable of type B) automatically convert 
> in the model to an association. Why is argo not doing that? Is a pointer 
> in java not an equivalent to an association in uml?
> 
> Is it possible to ask it to do that? Or add every associations, after 
> import, in one command? (Please note it is not the same as the "add 
> association" command available in the class diagram, which will add, 
> AFAIU, existing associations from the model to the diagram.)
> 
> Please tell me if I misunderstand the role of associations in an UML 
> model (or if my question is unclear, I can give a little example)...
> Olivier
> 
> ------------------------------------------------------
> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=449&dsMessageId=2366336
> 
> To unsubscribe from this discussion, e-mail:
> [[email protected]].

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

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

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to