Bug 354620 - VSL-Editor Problems with MARTE-TupleTypes of Multiplicity 0..*
Summary: VSL-Editor Problems with MARTE-TupleTypes of Multiplicity 0..*
Status: ASSIGNED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Marte (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ansgar Radermacher CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-12 09:42 EDT by Klaus Becker CLA
Modified: 2017-08-02 05:53 EDT (History)
4 users (show)

See Also:


Attachments
Screenshot (5.36 KB, image/png)
2011-08-12 09:48 EDT, Klaus Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Becker CLA 2011-08-12 09:42:03 EDT
Build Identifier: 20110301-1815

The VSL-Editor has problems with stereotypes that contain properties with Multiplicity 0..* that are typed by a datatype that is a MARTE-TupleType.

Reproducible: Always

Steps to Reproduce:
1)
Create a papyrus profile model that applies MARTE. 

Add a DataType "D1" with Stereotype "MARTE::MARTE_Annexes::VSL::DataTypes::TupleType" and add 2 propterties of some type (e.g. integer) to the DataType.

Add a second DataType "D2".
Add a property "Property_D1" of type D1 to D2. Set Multiplicity "0..*" to this property.
Add a property "Property_int" of type primitive Integer to D2. Set Multiplicity "0..*" to this property.

Create a stereotype that generalizes "D2" and extends metaclass "Class".

Then save the profile.

2)
Now, create a normal papyrus UML model and apply the newly created profile.

Create a class in a diagram and apply the stereotype of the new profile to it.

Open the VSL-Editor by clicking "Open textual editor for stereotype applications" in the contextmenu of the class.
Now add property "Property_int" by <ctrl>+<space> and define it, all works fine.

Now instead, add property "Property_D1" and try to define it. 
There appears an error message on both encapsulated data-types:

Error-Message:
Multiple markers at this line
 - Couldn't resolve reference to Property 'Property0'
 - Property null is not typed.
Comment 1 Klaus Becker CLA 2011-08-12 09:47:21 EDT
Papyrus version: 0.7.4.v201106042008
Comment 2 Klaus Becker CLA 2011-08-12 09:48:42 EDT
Created attachment 201398 [details]
Screenshot
Comment 3 Ansgar Radermacher CLA 2011-08-26 17:18:05 EDT
Fixed in revision 5311 (for the moment in the 0.7.x branch only). Arnaud: can you please check if the modification (in VSLScopeProvider has eventual side effects on other functions.