| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.sirius.diagram" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.sirius.diagram" id="customBundledImageShape" name="org.eclipse.sirius.diagram.customBundledImageShape"/> |
| </appInfo> |
| <documentation> |
| This extension registers new shapes for Bundle Image styles that can be used in Viewpoint Specification Models. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appInfo> |
| <meta.element /> |
| </appInfo> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="image"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a fully qualified identifier of the target extension point |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The identifier of the extension instance |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| an optional name of the extension instance |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="image"> |
| <complexType> |
| <sequence minOccurs="0" maxOccurs="1"> |
| <element ref="colorIdentifier"/> |
| <element ref="colorAttribute"/> |
| <element ref="borderColorIdentifier"/> |
| <element ref="borderColorAttribute"/> |
| <element ref="borderSizeIdentifier"/> |
| <element ref="borderSizeAttribute"/> |
| </sequence> |
| <attribute name="label" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The label of the shape to be displayed in a bundle image style. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="imagePath" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Path of the image in this plug-in |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="colorIdentifier"> |
| <complexType> |
| <attribute name="colorIdentifier" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Identifier of the shape color tag in the SVG file |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="colorAttribute"> |
| <complexType> |
| <sequence minOccurs="0" maxOccurs="1"> |
| <element ref="subAttributeIdentifier"/> |
| </sequence> |
| <attribute name="colorAttribute" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Key of the color attribute of the shape color tag in the SVG file |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="borderColorIdentifier"> |
| <complexType> |
| <attribute name="borderColorIdentifier" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Identifier of the shape border color tag in the SVG file |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="borderColorAttribute"> |
| <complexType> |
| <sequence minOccurs="0" maxOccurs="1"> |
| <element ref="subAttributeIdentifier"/> |
| </sequence> |
| <attribute name="borderColorAttribute" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Key of the color attribute of the shape border color tag in the SVG file |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="borderSizeIdentifier"> |
| <complexType> |
| <attribute name="borderSizeIdentifier" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Identifier of the shape border size tag in the SVG file |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="borderSizeAttribute"> |
| <complexType> |
| <sequence minOccurs="0" maxOccurs="1"> |
| <element ref="subAttributeIdentifier"/> |
| </sequence> |
| <attribute name="borderSizeAttribute" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Key of the color attribute of the shape border size tag in the SVG file |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="subAttributeIdentifier"> |
| <complexType> |
| <attribute name="subAttributeIdentifier" type="string" use="required"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| 6.2 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| The following is an example of a SVG provided to the list of bundled image shapes with this extension point: |
| <p> |
| <pre> |
| |
| <extension |
| id="custom.circle.svg" |
| name="Circle" |
| point="org.eclipse.sirius.diagram.customBundledImageShape"> |
| <image |
| imagePath="/542678.design/images/circle.svg" |
| label="custom.circle"> |
| <colorIdentifier |
| colorIdentifier="circle4"> |
| </colorIdentifier> |
| <colorAttribute |
| colorAttribute="style"> |
| <subAttributeIdentifier |
| subAttributeIdentifier="fill"> |
| </subAttributeIdentifier> |
| </colorAttribute> |
| <borderColorIdentifier |
| borderColorIdentifier="circle4"> |
| </borderColorIdentifier> |
| <borderColorAttribute |
| borderColorAttribute="style"> |
| <subAttributeIdentifier |
| subAttributeIdentifier="stroke"> |
| </subAttributeIdentifier> |
| </borderColorAttribute> |
| <borderSizeIdentifier |
| borderSizeIdentifier="circle4"> |
| </borderSizeIdentifier> |
| <borderSizeAttribute |
| borderSizeAttribute="style"> |
| <subAttributeIdentifier |
| subAttributeIdentifier="stroke-width"> |
| </subAttributeIdentifier> |
| </borderSizeAttribute> |
| </image> |
| </extension> |
| </pre> |
| </p> |
| </pre> |
| </p> |
| </documentation> |
| </annotation> |
| |
| |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2019 Obeo<br> |
| |
| This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License 2.0 |
| which accompanies this distribution, and is available at |
| <a href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-v20.html</a>/ |
| |
| SPDX-License-Identifier: EPL-2.0 |
| </documentation> |
| </annotation> |
| |
| </schema> |