Bug 496542

Summary: BundledImageShape extension should me more documented
Product: [Modeling] Sirius Reporter: Frédéric Madiot <frederic.madiot>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: julien.dupont
Version: 4.0.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=518294
Whiteboard:

Description Frédéric Madiot CLA 2016-06-22 06:19:45 EDT
The constraints on the SVG images supported by this extennsion point should be indicated in the documentation.

Some constraints :
- the fill color must be defined by a linearGradient
- the linearGradient must have only one stop
- the color defined by the stop must be an hexa (not "none", "green", ...)
- the colorIdentifier used by Sirius is the id of the stop
- the borderColorIdentifier used by Sirius is the id of a path
- the border color is defined by the stroke attribute of the path
- the stroke attribute of the path must not be an hexa

In addition, when Sirius doesn't find the right attributes, there is a "String index out of range" exception. The exception should be more explicit and indicate the missing attribute or invalid value (for example when it expects an hexa color).