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

Bug 342546

Summary: [SysML] <<ValueType>> creation bug
Product: [Modeling] Papyrus Reporter: markus.krallinger
Component: CoreAssignee: Yann Tanguy <yann.tanguy>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cletavernier
Version: 0.7.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshot of the behaviour
none
Bug fix rschnekenburger: iplog+

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).