| Summary: | [Usability] Stereotype attributes are collapsed after assignment or re-selecting of source elements | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Ansgar Radermacher <ansgar.radermacher> | ||||||||
| Component: | Core | Assignee: | Project Inbox <mdt-papyrus-inbox> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | minor | ||||||||||
| Priority: | P3 | CC: | Patrick.Tessier, rschnekenburger | ||||||||
| Version: | unspecified | Flags: | sebastien.gerard:
iplog-
|
||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Ansgar Radermacher
Created attachment 173867 [details]
Does not refresh complete treebrowser, nodes are not collapsed
Refreshes only the currently selected element. Requires however a change of the model update from asynchronous to synchronous (via OperationHistory), since the refresh would otherwise be done before the model update and would therefore remain in-effective.
patch applied in the revision 2338 Created attachment 174582 [details]
Fix of fix
The original patch works fine for "normal" profiles. However, in a static profile, the modification of one stereotype attribute might lead to the modification of another (derived) attribute. It is therefore required to redraw the whole tree. This patch redraws the whole tree but assures that the selection and collapsed state remains untouched. It did not work in the original version, since the getChildren operation of P superclass of ParentTreeObject (a superclass of the content provider) always re-created the children.
(In reply to comment #3) > Created an attachment (id=174582) [details] > Fix of fix > > The original patch works fine for "normal" profiles. However, in a static > profile, the modification of one stereotype attribute might lead to the > modification of another (derived) attribute. It is therefore required to redraw > the whole tree. This patch redraws the whole tree but assures that the > selection and collapsed state remains untouched. It did not work in the > original version, since the getChildren operation of P superclass of > ParentTreeObject (a superclass of the content provider) always re-created the > children. Applied in r2429. I let you close the bug if every thing works fine for you. Created attachment 174877 [details]
Up/down
This additional patch fixes moving stereotype values (in case of multi-value) up and down. Before, the associated commands were not executed in a transaction and caused an exception. Also display refresh was done in an inconsistent way. The patch also removes some dead code.
The existing code, in particular in org.eclipse.papyrus.profile.tree.objects should be reviewed/revised in the future (a lot of warning dues to raw types, attributes of super classes are duplicated due to typing issues).
(In reply to comment #5) > Created an attachment (id=174877) [details] > Up/down > > This additional patch fixes moving stereotype values (in case of multi-value) > up and down. Before, the associated commands were not executed in a transaction > and caused an exception. Also display refresh was done in an inconsistent way. > The patch also removes some dead code. > > The existing code, in particular in org.eclipse.papyrus.profile.tree.objects > should be reviewed/revised in the future (a lot of warning dues to raw types, > attributes of super classes are duplicated due to typing issues). Applied in r2444. Thanks! Fixed by attached patches |