As a result about a bug regarding Constraints getting
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1248948104 deleted we came to the conclusion that we needed a
real solution for this.
This is a request with three related parts, which have to be developed together to ensure a consistent, workable solution.
1. UML items should never be owned by DiagramsCurrently some UML defined items such as notes and constraints are considered to be owned by the diagram they are displayed on. If you delete the diagram then the note or constraint gets deleted as well.
This is a BUG. In UML diagrams cannot own anything. A diagram is a VIEW on the model (much like a window, see Roy for more (surrealistic) thoughts about this). Deleting a view should never change anything the model behind it. The only things that a diagram should own are purely graphical things like free textboxes, rectangles etc..
2. All UML items should be shown int he model tree viewEverything that is defined by UML should is part of the model and should be shown in the model tree view. This includes relation, notes, constraints etc... This becomes especially important when part 1 is implemented since otherwise things like notes and constraint can not be deleted anymore.
Showing these items in the model tree view also allows us to re-use notes and constraints on other diagrams reducing the need for redundant information.
3. Add a filter to the project tree viewIn a large model the tree view can now already become difficult to work with because of the sheer volume of items displayed.
If we are going to add even more items to the treeview then a filter will be needed in order to keep the treeview usable.
I suggest an option to be able to filter on type of element (class, note, relation, ...)
The suggestion from Paolo to be able to save filters would be a nice addition.
I've sent this as a Feature Request to Sparx.
Geert