I have a package in my diagram class, and I created a class outside this package.
I’d like now to inlucde in the package.
In the Model Explorer, the class is insode the right “folder”, but in the Diagram Navigator, it is outside.
And when I move the package in the diagram, the class doesn’t follow the package.
Thank you for your post. According to your description, the class in Model Explorer is now the master view of the class. Master view has the control over the parent of a model element. If you want to make the parent of class follow that presented in class diagram, you need to set the class shape in diagram to be the master. Here are the steps:
Select Tools > Application Options from the main menu
In the Application Options window, open General > Environment
Check “Advanced UI mode”
Right click on the class shape and select “Selection > Set as Master View” from the popup menu
Move the class into the package.
This should work. If not, please post your project file.