Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360123

Summary: [Activity Diagram] Property View of OpaqueAction : problems with body attribute
Product: [Modeling] Papyrus Reporter: Alexandre Cortier <alexandre.cortier>
Component: CoreAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Alexandre Cortier CLA 2011-10-06 12:04:00 EDT
Build Identifier: Build id: 20110916-0149, Papyrus 0.8.1.v201109301802

There is a bug with the 'Body' attribute of an OpaqueAction in the Property View.
The body attribute can only be valued using the Advanced tab because of an error in the UML tab (the body section is unavailable)

Reproducible: Always

Steps to Reproduce:
1. Create an activity diagram with an OpaqueAction
2. Select the property View --> UML Tab and see the body section
3.
Comment 1 Camille Letavernier CLA 2011-10-12 04:12:16 EDT
Actually, the "Body" attribute is related to the "Language" property. You have to add a Language, select this language, then you can edit the Body associated to this language.

But I admit that this behavior isn't obvious. Maybe we should add a group or a border to the Language-Body widget ? (Which is actually a single widget for two properties).

There is, however, a problem of refresh in the property view : when the Body widget is first displayed, it has a zero-height.

Workaround : You need to resize the Property view to force the refresh.

This bug only occurs if the Language property is empty when you open the property view.
Comment 2 Camille Letavernier CLA 2011-10-12 05:16:43 EDT
Fixed in r5792 (Branch 0.8.X)
Merged to the trunk in r5793

The patch brings the following changes :

- The Body widget is now correctly refreshed, even on the first display
- The Body widget, when unavailable, now displays a warning message