Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342546 - [SysML] <<ValueType>> creation bug
Summary: [SysML] <<ValueType>> creation bug
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Yann Tanguy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 07:23 EDT by markus.krallinger CLA
Modified: 2012-03-28 05:15 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot of the behaviour (173.47 KB, image/png)
2011-04-12 07:23 EDT, markus.krallinger CLA
no flags Details
Bug fix (5.19 KB, patch)
2011-06-01 09:32 EDT, Camille Letavernier CLA
rschnekenburger: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description markus.krallinger CLA 2011-04-12 07:23:19 EDT
Created attachment 193031 [details]
Screenshot of the behaviour

When defining a new ValueType (Stereotype <<ValueType>>), for example in the block-definition diagram, it is possible to define an unit and a dimension with the ValueType. 
Unfortunately when adding an unit to the ValueType in the list, only the name "Unit" is displayed, leading to multiply entries of "Unit" instead of the actual name of the unit.

I've tested this behaviour when I tryed to implement the baseline tutorial from the OMG [1]. You can find the diagram at page 71. In contrast to the example given  in the tutorial I modeled the different units as entities with the Sterotype <<Unit>> (from the palette) and tryed to choose them in the <<ValueType>>. 

The same error (all the list entries say "Dimension" instead of "Unit") occurs when trying to apply a dimension to a value type.  

[1] http://www.omgsysml.org/SysML-Tutorial-Baseline-to-INCOSE-060524-low_res.pdf
Comment 1 Yann Tanguy CLA 2011-06-01 08:24:37 EDT
Camille, can you check this. 

In the property view (SysML tab) for a ValueType, the Unit and Dimension ref selection dialogs don't show the name of stereotyped object but the label of the stereotype application.
Comment 2 Camille Letavernier CLA 2011-06-01 09:32:05 EDT
Created attachment 197093 [details]
Bug fix

This patch changes the label provider for Stereotype objects.
Comment 3 Camille Letavernier CLA 2011-06-01 09:32:33 EDT
(In reply to comment #2)
> Created attachment 197093 [details]
> Bug fix
> 
> This patch changes the label provider for Stereotype objects.

I, Camille Letavernier, wrote 100% of the code I've provided.
This code contains no cryptography
I have the right to contribute the code to Eclipse.
I contribute the content under the EPL.
Comment 4 Yann Tanguy CLA 2011-06-01 14:37:03 EDT
Patch applied in r4823 (fixed in RC4).