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

Bug 354620

Summary: VSL-Editor Problems with MARTE-TupleTypes of Multiplicity 0..*
Product: [Modeling] Papyrus Reporter: Klaus Becker <klausbecker81>
Component: MarteAssignee: Ansgar Radermacher <ansgar.radermacher>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: ansgar.radermacher, arnaud.cuccuru, chriss122xp, klausbecker81
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screenshot none

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.