blob: 78aee31b8c01ac065e8341977dcceea12e898294 [file] [log] [blame]
<?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:
&lt;p&gt;
&lt;pre&gt;
&lt;extension
id=&quot;custom.circle.svg&quot;
name=&quot;Circle&quot;
point=&quot;org.eclipse.sirius.diagram.customBundledImageShape&quot;&gt;
&lt;image
imagePath=&quot;/542678.design/images/circle.svg&quot;
label=&quot;custom.circle&quot;&gt;
&lt;colorIdentifier
colorIdentifier=&quot;circle4&quot;&gt;
&lt;/colorIdentifier&gt;
&lt;colorAttribute
colorAttribute=&quot;style&quot;&gt;
&lt;subAttributeIdentifier
subAttributeIdentifier=&quot;fill&quot;&gt;
&lt;/subAttributeIdentifier&gt;
&lt;/colorAttribute&gt;
&lt;borderColorIdentifier
borderColorIdentifier=&quot;circle4&quot;&gt;
&lt;/borderColorIdentifier&gt;
&lt;borderColorAttribute
borderColorAttribute=&quot;style&quot;&gt;
&lt;subAttributeIdentifier
subAttributeIdentifier=&quot;stroke&quot;&gt;
&lt;/subAttributeIdentifier&gt;
&lt;/borderColorAttribute&gt;
&lt;borderSizeIdentifier
borderSizeIdentifier=&quot;circle4&quot;&gt;
&lt;/borderSizeIdentifier&gt;
&lt;borderSizeAttribute
borderSizeAttribute=&quot;style&quot;&gt;
&lt;subAttributeIdentifier
subAttributeIdentifier=&quot;stroke-width&quot;&gt;
&lt;/subAttributeIdentifier&gt;
&lt;/borderSizeAttribute&gt;
&lt;/image&gt;
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;
&lt;/pre&gt;
&lt;/p&gt;
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
Copyright (c) 2019 Obeo&lt;br&gt;
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
&lt;a href=&quot;https://www.eclipse.org/legal/epl-2.0&quot;&gt;https://www.eclipse.org/legal/epl-v20.html&lt;/a&gt;/
SPDX-License-Identifier: EPL-2.0
</documentation>
</annotation>
</schema>