]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram/adapters.xml
Merge "Potential fix for diagram scene graph screw-up regression"
[simantics/platform.git] / bundles / org.simantics.diagram / adapters.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     Copyright (c) 2007, 2010 Association for Decentralized Information Management
4     in Industry THTH ry.
5     All rights reserved. This program and the accompanying materials
6     are made available under the terms of the Eclipse Public License v1.0
7     which accompanies this distribution, and is available at
8     http://www.eclipse.org/legal/epl-v10.html
9    
10     Contributors:
11         VTT Technical Research Centre of Finland - initial API and implementation
12  -->
13
14 <adapters>
15
16         <target interface="org.simantics.scenegraph.profile.ProfileEntry">
17                 <type
18                         uri="http://www.simantics.org/Diagram-0.0/GroupStyleProfileEntry"
19                         class="org.simantics.diagram.adapter.GroupStyleProfileEntry">
20                         <graph />
21                         <this />
22                 </type>
23         </target>
24
25         <target interface="org.simantics.scenegraph.profile.Style">
26                 <type
27                         uri="http://www.simantics.org/Diagram-0.0/ConstantStyle"
28                         class="org.simantics.diagram.adapter.ConstantStyle">
29                         <graph />
30                         <this />
31                 </type>
32                 <type
33                         uri="http://www.simantics.org/Diagram-0.0/ExpressionStyle"
34                         class="org.simantics.diagram.adapter.ExpressionStyle">
35                         <this />
36                 </type>
37                 <type
38                         uri="http://www.simantics.org/Diagram-0.0/SCLTextGridStyle"
39                         class="org.simantics.diagram.profile.SCLTextGridStyle">
40                         <graph />
41                         <this />
42                 </type>
43         </target>
44
45         <target interface="org.simantics.scenegraph.profile.Group">
46                 <type
47                         uri="http://www.simantics.org/Diagram-0.0/TypeGroup"
48                         class="org.simantics.diagram.adapter.TypeGroup">
49                         <graph />
50                         <this />
51                 </type>
52                 <type
53                         uri="http://www.simantics.org/Diagram-0.0/MappedTypeGroup"
54                         class="org.simantics.diagram.adapter.MappedTypeGroup">
55                         <graph />
56                         <this />
57                 </type>
58         </target>
59
60         <target interface="org.simantics.g2d.diagram.DiagramClass">
61                 <baseType uri="http://www.simantics.org/Diagram-0.0/Composite" />
62                 <adapter uri="http://www.simantics.org/Diagram-0.0/Composite"
63                         adapterClass="org.simantics.diagram.adapter.DiagramClassAdapter" />
64         </target>
65
66         <target interface="org.simantics.diagram.adapter.ElementFactory">
67                 <resource uri="http://www.simantics.org/Diagram-0.0/Flag"
68                         class="org.simantics.diagram.adapter.FlagClassFactory" />
69                 <resource uri="http://www.simantics.org/Diagram-0.0/Composite"
70                         class="org.simantics.diagram.adapter.CompositeClassFactory" />
71                 <resource uri="http://www.simantics.org/Diagram-0.0/DefinedElement"
72                         class="org.simantics.diagram.adapter.DefinedElementFactory" />
73                 <resource uri="http://www.simantics.org/Diagram-0.0/SVGElement"
74                         class="org.simantics.diagram.adapter.SVGElementClassFactory" />
75                 <resource uri="http://www.simantics.org/Diagram-0.0/RasterElement"
76                         class="org.simantics.diagram.adapter.RasterElementClassFactory" />
77                 <resource uri="http://www.simantics.org/Diagram-0.0/AnimatedSVGElement"
78                         class="org.simantics.diagram.adapter.AnimatedSVGElementClassFactory" />
79                 <resource uri="http://www.simantics.org/Diagram-0.0/BranchPoint"
80                         class="org.simantics.diagram.adapter.BranchPointClassFactory" />
81                 <resource uri="http://www.simantics.org/Diagram-0.0/Connection"
82                         class="org.simantics.diagram.adapter.DefaultConnectionEdgeClassFactory" />
83                 <resource uri="http://www.simantics.org/Diagram-0.0/TextElement"
84                         class="org.simantics.diagram.adapter.TextElementClassFactory" />
85
86                 <type uri="http://www.simantics.org/Diagram-0.0/Connection"
87                         class="org.simantics.diagram.adapter.DefaultConnectionClassFactory" />
88
89                 <resource uri="http://www.simantics.org/Diagram-0.0/RouteGraphConnection"
90                         class="org.simantics.diagram.adapter.RouteGraphConnectionClassFactory">
91                         <graph />
92                 </resource>
93                 <type uri="http://www.simantics.org/Diagram-0.0/RouteGraphConnection"
94                         class="org.simantics.diagram.adapter.RouteGraphConnectionClassFactory">
95                         <graph/>
96                 </type>
97                 <type uri="http://www.simantics.org/Diagram-0.0/Flag"
98                         class="org.simantics.diagram.adapter.FlagClassFactory" />
99                 <type uri="http://www.simantics.org/Diagram-0.0/Composite"
100                         class="org.simantics.diagram.adapter.CompositeClassFactory" />
101                 <type uri="http://www.simantics.org/Diagram-0.0/RasterElement"
102                         class="org.simantics.diagram.adapter.RasterElementClassFactory" />
103                 <type uri="http://www.simantics.org/Diagram-0.0/SVGElement"
104                         class="org.simantics.diagram.adapter.SVGElementClassFactory" />
105                 <type uri="http://www.simantics.org/Diagram-0.0/AnimatedSVGElement"
106                         class="org.simantics.diagram.adapter.AnimatedSVGElementClassFactory" />
107                 <type uri="http://www.simantics.org/Diagram-0.0/DefinedElement"
108                         class="org.simantics.diagram.adapter.DefinedElementFactory" />
109                 <type uri="http://www.simantics.org/Diagram-0.0/BranchPoint"
110                         class="org.simantics.diagram.adapter.BranchPointClassFactory" />
111                 <type uri="http://www.simantics.org/Diagram-0.0/TextElement"
112                         class="org.simantics.diagram.adapter.TextElementClassFactory" />
113         </target>
114
115         <target interface="org.simantics.diagram.synchronization.graph.ElementWriter">
116                 <type uri="http://www.simantics.org/Layer0-0.0/Entity"
117                         class="org.simantics.diagram.adapter.DummyElementWriter" />
118                 <resource uri="http://www.simantics.org/Diagram-0.0/Flag"
119                         class="org.simantics.diagram.adapter.FlagWriter" />
120                 <resource uri="http://www.simantics.org/Diagram-0.0/TextElement"
121                         class="org.simantics.diagram.adapter.TextElementWriter" />
122         </target>
123
124         <target interface="org.simantics.diagram.symbolcontribution.SymbolContribution">
125                 <type uri="http://www.simantics.org/Diagram-0.0/BasicSymbolContribution"
126                         class="org.simantics.diagram.symbolcontribution.BasicSymbolContribution">
127                         <this />
128                 </type>
129                 <type uri="http://www.simantics.org/Diagram-0.0/IndexRootSymbolContribution"
130                         class="org.simantics.diagram.symbolcontribution.IndexRootSymbolContribution">
131                 </type>
132         </target>
133
134         <target interface="org.simantics.diagram.symbolcontribution.SymbolContributionFilter">
135                 <resource uri="http://www.simantics.org/Diagram-0.0/DenyFilter"
136                         class="org.simantics.diagram.symbolcontribution.DenyFilter"
137                         constructor="get">
138                 </resource>
139                 <type uri="http://www.simantics.org/Diagram-0.0/SCLFilter"
140                         class="org.simantics.diagram.symbolcontribution.SCLFilter">
141                         <this />
142                 </type>
143         </target>
144
145         <target interface="org.simantics.g2d.routing.IRouter2">
146                 <resource uri="http://www.simantics.org/Diagram-0.0/LinearRouting"
147                         class="org.simantics.g2d.routing.TrivialRouter2" />
148                 <resource uri="http://www.simantics.org/Diagram-0.0/RightAngledRouting"
149                         class="org.simantics.g2d.routing.algorithm2.Router4" />
150         </target>
151
152         <target interface="org.simantics.ui.icons.ImageDescriptorProvider">
153                 <type uri="http://www.simantics.org/Diagram-0.0/Diagram"
154                         class="org.simantics.ui.icons.BundleImageDescriptorProvider">
155                         <bundle />
156                         <string>icons/diagram.png</string>
157                 </type>
158                 <resource uri="http://www.simantics.org/Diagram-0.0/Diagram"
159                         class="org.simantics.ui.icons.BundleImageDescriptorProvider">
160                         <bundle />
161                         <string>icons/diagram.png</string>
162                 </resource>
163         </target>
164
165         <target interface="org.simantics.db.layer0.adapter.StringModifierFactory">
166                 <type uri="http://www.simantics.org/Diagram-0.0/Flag" class="org.simantics.diagram.flag.FlagStringModifierFactory">
167                         <graph />
168                         <this />
169                 </type>
170         </target>
171
172         <target interface="org.simantics.diagram.flag.FlagLabelingScheme">
173                 <baseType uri="http://www.simantics.org/Diagram-0.0/FlagLabelingScheme" />
174                 <resource
175                         uri="http://www.simantics.org/Diagram-0.0/FlagLabelingScheme/Alphabetical"
176                         class="org.simantics.diagram.flag.PermutativeFlagLabelingScheme">
177                         <string>A</string>
178                         <string>A</string>
179                         <string>Z</string>
180                 </resource>
181                 <resource
182                         uri="http://www.simantics.org/Diagram-0.0/FlagLabelingScheme/Numeric"
183                         class="org.simantics.diagram.flag.PermutativeFlagLabelingScheme">
184                         <string>1</string>
185                         <string>1</string>
186                         <string>9</string>
187                 </resource>
188         </target>
189
190         <target interface="org.simantics.scenegraph.loader.ScenegraphLoader">
191                 <type uri="http://www.simantics.org/Diagram-0.0/Scenegraph/AbstractText" class="org.simantics.scenegraph.loader.StandardScenegraphLoader">
192                         <this/>
193                         <bundle />
194                         <string>org.simantics.diagram.elements.TextNode</string>
195                 </type>
196                 <type uri="http://www.simantics.org/Diagram-0.0/Scenegraph/SVGImage" class="org.simantics.scenegraph.loader.StandardScenegraphLoader">
197                         <this/>
198                         <bundle />
199                         <string>org.simantics.diagram.elements.SVGNode</string>
200                 </type>
201                 <type uri="http://www.simantics.org/Diagram-0.0/Scenegraph/Composite" class="org.simantics.scenegraph.loader.StandardScenegraphLoader">
202                         <this/>
203                         <bundle />
204                         <string>org.simantics.scenegraph.g2d.nodes.spatial.RTreeNode</string>
205                 </type>
206         </target>
207         <target
208                 interface="org.simantics.db.layer0.adapter.PasteHandler">
209                 <type
210                         uri="http://www.simantics.org/Diagram-0.0/Scenegraph/Composite"
211                         class="org.simantics.diagram.adapter.ScenegraphCompositePasteHandler">
212                         <this />
213                 </type>
214         </target>
215
216         <target interface="org.simantics.diagram.synchronization.graph.layer.IGraphLayerUtil">
217                 <resource uri="http://www.simantics.org/Diagram-0.0/Layer"
218                         class="org.simantics.diagram.synchronization.graph.layer.GraphLayerUtil">
219                 </resource>
220         </target>
221 </adapters>