Bug 417846 - [CSS] The CSSEngine shall support attribute selectors for references typed with NamedElement
Summary: [CSS] The CSSEngine shall support attribute selectors for references typed wi...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: M2   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard: Usability
Keywords: plan
Depends on:
Blocks:
 
Reported: 2013-09-23 11:38 EDT by Camille Letavernier CLA
Modified: 2013-12-06 11:18 EST (History)
0 users

See Also:
cletavernier: luna+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Camille Letavernier CLA 2013-09-23 11:38:43 EDT
Currently, the CSS Selectors for EObject only rely on values of EAttributes and primitive Stereotype properties.

When a property is an EReference typed with uml::NamedElement, we should handle it in the CSS Attribute selector. In this case, the value of the reference is the name of the NamedElement.

For example, we could write:

Property[type=String] { /* The type of the Property is a Classifier named "String" */
	fontColor:red;
}

For multi-valued String properties, we could write:

OpaqueExpression[language~=Java]{ /* the "language" property contains "Java"
	fillColor:blue;
}
Comment 1 Camille Letavernier CLA 2013-09-23 12:34:27 EDT
The CSS Engine shall also support such values for Ecore ENamedElements
Comment 2 Camille Letavernier CLA 2013-09-25 10:19:10 EDT
Done in fdb0bab349b024e5028265e223962617e87f0cb4
Pushed to master
Comment 3 Camille Letavernier CLA 2013-12-06 11:18:47 EST
Backported to 0.10-maintenance