Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360123 - [Activity Diagram] Property View of OpaqueAction : problems with body attribute
Summary: [Activity Diagram] Property View of OpaqueAction : problems with body attribute
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 12:04 EDT by Alexandre Cortier CLA
Modified: 2015-06-26 15:27 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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