This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
see attached sqd created next way: create group. create chain of invocations in group and outside. now deside to add all into partition. create partition, add column. move to back. expand to cover group and chain. save. reload diagram. some invocations go behind the partition. (group may go too in some cases). in described scenario partition do not own elements and persistence do not maintain layering.
it may be filed as an issue, but we also do not own forks(and other elements) which are placed over separator in partition/composite state, so only proper layering persistence will restore diagram in this case. expansion/move of partition do not own elements the same as in 6.1 so may not be fixed in 6.5 but layering works in 6.1 so diagrams are loaded correctly. in 6.5 it also affect importing where containment isn't handled well for cases of not UMLContainerWidgets
ok, it may not affect importing more then 6.5 diagrams any more, I resolve most containment on importing now. but it's still an issue.
The problem is not persistence. Move-to-back is not making partition "contain" the group and other nodes. To verify, try to move partition after you did "move-to-back".. it doesn't move the group.. which means the containment is NOT established yet for persistence mechanism to save/load it. hence it is treating them as separate nodes.
Move-to-back is not designed to contain the elements before it. This is not a bug, and is working as designed. If you want to contain the elements, move/drag them on top of the container.
This is the same as 6.1
this issue is not about containment problems which most are the same as in 6.1(but not all) but about layers of elements which changes after reloading.
Sergey, I do not understand what you mean by element layering. Can you please describe in detail and attach before/after snapshots for clarity.
Created attachment 66618 [details] original diagram
Created attachment 66619 [details] reopened diagram
Here are the simple repro steps: 1. create a new class diagram 2. create Class "A" on the diagram, followed by class "B", move class B to partially overlap with A with B on top. 3. save and close the diagram (see screen shot "original") 4. reopen the diagram (see screen shot "after_loading") As you see, now A is on top, the widget layer index was not preserved.
Fixed. http://hg.netbeans.org/uml-main/rev/be5bed728f81 http://hg.netbeans.org/uml-main/rev/d7ac45b551ee
Reviewed
Integrated into 'main-golden', available in build *200808120201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/be5bed728f81 User: jyothivasa@netbeans.org Log: Partial fix for #140227 - Preserve Element layering
verified in build 20080813.