4b0463102d14950b00ee2e88a65873a6d38dec0c
[simantics/platform.git] / bundles / org.simantics.diagram / adapters.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r<!--
2     Copyright (c) 2007, 2010 Association for Decentralized Information Management
3     in Industry THTH ry.
4     All rights reserved. This program and the accompanying materials
5     are made available under the terms of the Eclipse Public License v1.0
6     which accompanies this distribution, and is available at
7     http://www.eclipse.org/legal/epl-v10.html
8    
9     Contributors:
10         VTT Technical Research Centre of Finland - initial API and implementation
11  -->
12
13 <adapters>
14
15         <target interface="org.simantics.scenegraph.profile.ProfileEntry">\r             <type\r                  uri="http://www.simantics.org/Diagram-0.0/GroupStyleProfileEntry"\r                      class="org.simantics.diagram.adapter.GroupStyleProfileEntry">\r                  <graph />\r                      <this />\r               </type>\r        </target>\r\r     <target interface="org.simantics.scenegraph.profile.Style">\r            <type\r                  uri="http://www.simantics.org/Diagram-0.0/ConstantStyle"\r                       class="org.simantics.diagram.adapter.ConstantStyle">\r                   <graph />\r                      <this />\r               </type>\r                <type\r                  uri="http://www.simantics.org/Diagram-0.0/ExpressionStyle"\r                     class="org.simantics.diagram.adapter.ExpressionStyle">\r                 <this />\r               </type>\r        </target>\r\r     <target interface="org.simantics.scenegraph.profile.Group">\r            <type\r                  uri="http://www.simantics.org/Diagram-0.0/TypeGroup"\r                   class="org.simantics.diagram.adapter.TypeGroup">\r                       <graph />\r                      <this />\r               </type>\r                <type\r                  uri="http://www.simantics.org/Diagram-0.0/MappedTypeGroup"\r                     class="org.simantics.diagram.adapter.MappedTypeGroup">\r                 <graph />\r                      <this />\r               </type>\r        </target>\r\r     <target interface="org.simantics.g2d.diagram.DiagramClass">
16                 <baseType uri="http://www.simantics.org/Diagram-0.0/Composite" />
17                 <adapter uri="http://www.simantics.org/Diagram-0.0/Composite"
18                         adapterClass="org.simantics.diagram.adapter.DiagramClassAdapter" />
19         </target>
20
21         <target interface="org.simantics.diagram.adapter.ElementFactory">
22                 <resource uri="http://www.simantics.org/Diagram-0.0/Flag"
23                         class="org.simantics.diagram.adapter.FlagClassFactory" />
24                 <resource uri="http://www.simantics.org/Diagram-0.0/Composite"
25                         class="org.simantics.diagram.adapter.CompositeClassFactory" />
26                 <resource uri="http://www.simantics.org/Diagram-0.0/DefinedElement"
27                         class="org.simantics.diagram.adapter.DefinedElementFactory" />
28                 <resource uri="http://www.simantics.org/Diagram-0.0/SVGElement"
29                         class="org.simantics.diagram.adapter.SVGElementClassFactory" />
30                 <resource uri="http://www.simantics.org/Diagram-0.0/RasterElement"\r                     class="org.simantics.diagram.adapter.RasterElementClassFactory" />\r             <resource uri="http://www.simantics.org/Diagram-0.0/AnimatedSVGElement"
31                         class="org.simantics.diagram.adapter.AnimatedSVGElementClassFactory" />
32                 <resource uri="http://www.simantics.org/Diagram-0.0/BranchPoint"
33                         class="org.simantics.diagram.adapter.BranchPointClassFactory" />
34                 <resource uri="http://www.simantics.org/Diagram-0.0/Connection"
35                         class="org.simantics.diagram.adapter.DefaultConnectionEdgeClassFactory" />
36                 <resource uri="http://www.simantics.org/Diagram-0.0/TextElement"
37                         class="org.simantics.diagram.adapter.TextElementClassFactory" />
38
39                 <type uri="http://www.simantics.org/Diagram-0.0/Connection"
40                         class="org.simantics.diagram.adapter.DefaultConnectionClassFactory" />\r\r                <resource uri="http://www.simantics.org/Diagram-0.0/RouteGraphConnection"\r                      class="org.simantics.diagram.adapter.RouteGraphConnectionClassFactory">\r                        <graph />\r              </resource>\r            <type uri="http://www.simantics.org/Diagram-0.0/RouteGraphConnection"\r                  class="org.simantics.diagram.adapter.RouteGraphConnectionClassFactory">\r                        <graph/>\r               </type>\r
41                 <type uri="http://www.simantics.org/Diagram-0.0/Flag"
42                         class="org.simantics.diagram.adapter.FlagClassFactory" />
43                 <type uri="http://www.simantics.org/Diagram-0.0/Composite"
44                         class="org.simantics.diagram.adapter.CompositeClassFactory" />
45                 <type uri="http://www.simantics.org/Diagram-0.0/RasterElement"\r                 class="org.simantics.diagram.adapter.RasterElementClassFactory" />\r             <type uri="http://www.simantics.org/Diagram-0.0/SVGElement"
46                         class="org.simantics.diagram.adapter.SVGElementClassFactory" />
47                 <type uri="http://www.simantics.org/Diagram-0.0/AnimatedSVGElement"
48                         class="org.simantics.diagram.adapter.AnimatedSVGElementClassFactory" />
49                 <type uri="http://www.simantics.org/Diagram-0.0/DefinedElement"
50                         class="org.simantics.diagram.adapter.DefinedElementFactory" />
51                 <type uri="http://www.simantics.org/Diagram-0.0/BranchPoint"
52                         class="org.simantics.diagram.adapter.BranchPointClassFactory" />
53                 <type uri="http://www.simantics.org/Diagram-0.0/TextElement"
54                         class="org.simantics.diagram.adapter.TextElementClassFactory" />
55         </target>
56
57         <target interface="org.simantics.diagram.synchronization.graph.ElementWriter">
58                 <type uri="http://www.simantics.org/Layer0-0.0/Entity"
59                         class="org.simantics.diagram.adapter.DummyElementWriter" />
60                 <resource uri="http://www.simantics.org/Diagram-0.0/Flag"
61                         class="org.simantics.diagram.adapter.FlagWriter" />
62                 <resource uri="http://www.simantics.org/Diagram-0.0/TextElement"
63                         class="org.simantics.diagram.adapter.TextElementWriter" />
64         </target>
65
66         <target interface="org.simantics.diagram.symbolcontribution.SymbolContribution">
67                 <type uri="http://www.simantics.org/Diagram-0.0/BasicSymbolContribution"
68                         class="org.simantics.diagram.symbolcontribution.BasicSymbolContribution">
69                         <this />
70                 </type>
71                 <type uri="http://www.simantics.org/Diagram-0.0/IndexRootSymbolContribution"\r                   class="org.simantics.diagram.symbolcontribution.IndexRootSymbolContribution">\r          </type>\r        </target>\r\r     <target interface="org.simantics.diagram.symbolcontribution.SymbolContributionFilter">\r         <resource uri="http://www.simantics.org/Diagram-0.0/DenyFilter"\r                        class="org.simantics.diagram.symbolcontribution.DenyFilter"\r                    constructor="get">\r             </resource>\r            <type uri="http://www.simantics.org/Diagram-0.0/SCLFilter"\r                     class="org.simantics.diagram.symbolcontribution.SCLFilter">\r                    <this />\r               </type>\r        </target>\r\r\r    <target interface="org.simantics.g2d.routing.IRouter2">\r                <resource uri="http://www.simantics.org/Diagram-0.0/LinearRouting"\r                     class="org.simantics.g2d.routing.TrivialRouter2" />\r            <resource uri="http://www.simantics.org/Diagram-0.0/RightAngledRouting"\r                        class="org.simantics.g2d.routing.algorithm2.Router4" />\r        </target>\r\r     <target interface="org.simantics.ui.icons.ImageDescriptorProvider">\r            <type uri="http://www.simantics.org/Diagram-0.0/Diagram"\r                       class="org.simantics.ui.icons.BundleImageDescriptorProvider">\r                  <bundle />\r                     <string>icons/diagram.png</string>\r             </type>\r                <resource uri="http://www.simantics.org/Diagram-0.0/Diagram"\r                   class="org.simantics.ui.icons.BundleImageDescriptorProvider">\r                  <bundle />\r                     <string>icons/diagram.png</string>\r             </resource>\r    </target>\r\r     <target interface="org.simantics.db.layer0.adapter.StringModifierFactory">\r             <type uri="http://www.simantics.org/Diagram-0.0/Flag" class="org.simantics.diagram.flag.FlagStringModifierFactory">\r                    <graph />\r                      <this />\r               </type>\r        </target>\r\r     <target interface="org.simantics.diagram.flag.FlagLabelingScheme">\r             <baseType uri="http://www.simantics.org/Diagram-0.0/FlagLabelingScheme" />\r             <resource\r                      uri="http://www.simantics.org/Diagram-0.0/FlagLabelingScheme/Alphabetical"\r                     class="org.simantics.diagram.flag.PermutativeFlagLabelingScheme">\r                      <string>A</string>\r                     <string>A</string>\r                     <string>Z</string>\r             </resource>\r            <resource\r                      uri="http://www.simantics.org/Diagram-0.0/FlagLabelingScheme/Numeric"\r                  class="org.simantics.diagram.flag.PermutativeFlagLabelingScheme">\r                      <string>1</string>\r                     <string>1</string>\r                     <string>9</string>\r             </resource>\r    </target>\r\r     <target interface="org.simantics.scenegraph.loader.ScenegraphLoader">\r          <type uri="http://www.simantics.org/Diagram-0.0/Scenegraph/AbstractText" class="org.simantics.scenegraph.loader.StandardScenegraphLoader">\r                     <this/>\r                        <bundle />\r                     <string>org.simantics.diagram.elements.TextNode</string>\r               </type>\r                <type uri="http://www.simantics.org/Diagram-0.0/Scenegraph/SVGImage" class="org.simantics.scenegraph.loader.StandardScenegraphLoader">\r                 <this/>\r                        <bundle />\r                     <string>org.simantics.scenegraph.g2d.nodes.SVGNode</string>\r            </type>\r                <type uri="http://www.simantics.org/Diagram-0.0/Scenegraph/Composite" class="org.simantics.scenegraph.loader.StandardScenegraphLoader">\r                        <this/>\r                        <bundle />\r                     <string>org.simantics.scenegraph.g2d.nodes.spatial.RTreeNode</string>\r          </type>\r        </target>\r      <target\r                interface="org.simantics.db.layer0.adapter.PasteHandler">\r              <type\r                  uri="http://www.simantics.org/Diagram-0.0/Scenegraph/Composite"\r                        class="org.simantics.diagram.adapter.ScenegraphCompositePasteHandler">\r                 <this />\r               </type>\r        </target>\r
72 </adapters>