Dia add existing class to package
Asked Answered
W

1

5

I'm using the Dia diagram editor to create an UML for a project, and I want to add a class into a package. This can be easily done when the class is created, then the class and the package are bound and the class can't be moved outside the package.
But I have designed many of my classes outside of a package and nom I want to add them in a package, and I can't figure out how to add a pre-existing class to a package.

Am I missing something ? Any ideas ?

Westcott answered 18/2, 2016 at 10:49 Comment(0)
W
7

Well I found it, it's in the menu Objects > Adopt.

Westcott answered 18/2, 2016 at 11:3 Comment(4)
In the version I have this command is called "parent", and is only available if the object to be added to a container is placed over top of the container, and both the object and container are selected.Skeg
The object must also not already have a parent (unparent it first if it does).Skeg
@Skeg I'm having the same issue as the OP, and I've tried your method, but it doesn't seem to work for me. Should the contained object be completely covering the container, or should they just be touching? I can't figure out how to make a package adopt a class.Daron
I don't remember in detail, but in my cases I always had the inner object completely surrounded by the outer, and above (i.e. visible on top). Then if memory serves I selected both, and chose objects -> parent.Skeg

© 2022 - 2024 — McMap. All rights reserved.