]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.browsing.ui.model/adapters.xml
153de6fc85afa4f2f3c6009c7ab799d03c5c97da
[simantics/platform.git] / bundles / org.simantics.browsing.ui.model / adapters.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r<!--
2     Copyright (c) 2010, 2011 Association for Decentralized Information Management in
3     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.browsing.ui.model.children.ChildRule">
16         <baseType uri="http://www.simantics.org/Viewpoint-0.0/ChildRule" />
17         <type
18             uri="http://www.simantics.org/Viewpoint-0.0/EqualContentChildRule"
19             class="org.simantics.browsing.ui.model.children.EqualContentChildRule">
20             <atMostOne uri="http://www.simantics.org/Viewpoint-0.0/EqualContentChildRule/HasCondition"
21                         to="org.simantics.browsing.ui.model.tests.Test"/>
22         </type>
23         <type
24             uri="http://www.simantics.org/Viewpoint-0.0/RelationChildRule"
25             class="org.simantics.browsing.ui.model.children.RelationChildRule">
26             <single uri="http://www.simantics.org/Viewpoint-0.0/RelationChildRule/HasRelation"/>\r            <atMostOne uri="http://www.simantics.org/Viewpoint-0.0/RelationChildRule/HasTest"\r                       to="org.simantics.browsing.ui.model.tests.Test"/>
27         </type>
28         <type\r            uri="http://www.simantics.org/Viewpoint-0.0/RelationStatementRule"\r            class="org.simantics.browsing.ui.model.children.RelationStatementRule">\r            <single uri="http://www.simantics.org/Viewpoint-0.0/RelationStatementRule/HasRelation"/>\r            <atMostOne uri="http://www.simantics.org/Viewpoint-0.0/RelationStatementRule/HasTest"\r                       to="org.simantics.browsing.ui.model.tests.Test"/>\r        </type>\r        <type
29             uri="http://www.simantics.org/Viewpoint-0.0/CompositeChildRule"
30             class="org.simantics.browsing.ui.model.children.CompositeChildRule">
31             <graph/>
32             <single uri="http://www.simantics.org/Viewpoint-0.0/CompositeChildRule/HasChildRules"/>
33         </type>
34         <type
35             uri="http://www.simantics.org/Viewpoint-0.0/ConstantChildRule"
36             class="org.simantics.browsing.ui.model.children.ConstantChildRule">
37             <related uri="http://www.simantics.org/Viewpoint-0.0/ConstantChildRule/HasChild"/>
38         </type>
39     </target>
40     
41     <target interface="org.simantics.browsing.ui.model.visuals.VisualsRule">
42         <baseType uri="http://www.simantics.org/Viewpoint-0.0/VisualsRule" />
43         <resource
44             uri="http://www.simantics.org/Viewpoint-0.0/ResourceNameLabelRule"
45             class="org.simantics.browsing.ui.model.labels.ResourceNameLabelRule"/>
46         <resource
47             uri="http://www.simantics.org/Viewpoint-0.0/ResourceLabelLabelRule"
48             class="org.simantics.browsing.ui.model.labels.ResourceLabelLabelRule"/>
49         <resource\r            uri="http://www.simantics.org/Viewpoint-0.0/StandardNameLabelRule"\r            class="org.simantics.browsing.ui.model.labels.StandardNameLabelRule"/>\r        <type
50             uri="http://www.simantics.org/Viewpoint-0.0/ConstantLabelRule"
51             class="org.simantics.browsing.ui.model.labels.ConstantLabelRule">
52             <single uri="http://www.simantics.org/Viewpoint-0.0/ConstantLabelRule/HasLabel" 
53                     to="java.lang.String"/>
54             <single uri="http://www.simantics.org/Viewpoint-0.0/ConstantLabelRule/HasColumnKey" \r                    to="java.lang.String"/>\r        </type>
55         <resource
56             uri="http://www.simantics.org/Viewpoint-0.0/ResourceNameModifierRule"
57             class="org.simantics.browsing.ui.model.modifiers.StringPropertyModifierRule">
58             <graph/>
59             <string>http://www.simantics.org/Layer0-0.0/HasName</string>
60         </resource>
61         <resource
62             uri="http://www.simantics.org/Viewpoint-0.0/ResourceLabelModifierRule"
63             class="org.simantics.browsing.ui.model.modifiers.StringPropertyModifierRule">
64             <graph/>
65             <string>http://www.simantics.org/Layer0-0.0/HasLabel</string>
66         </resource>
67         <resource\r            uri="http://www.simantics.org/Viewpoint-0.0/VariableLabelModifierRule"\r            class="org.simantics.browsing.ui.model.modifiers.VariablePropertyModifierRule">\r            <graph/>\r            <string>HasLabel</string>\r        </resource>\r        <resource
68             uri="http://www.simantics.org/Viewpoint-0.0/NoModifierRule"
69             class="org.simantics.browsing.ui.model.modifiers.NoModifierRule"
70             constructor="get">
71         </resource>
72
73         <type
74             uri="http://www.simantics.org/Viewpoint-0.0/ConstantImageRule"
75             class="org.simantics.browsing.ui.model.images.ConstantImageRule">
76             <single uri="http://www.simantics.org/Viewpoint-0.0/ConstantImageRule/HasImage" 
77                     to="org.eclipse.jface.resource.ImageDescriptor"/>
78             <single uri="http://www.simantics.org/Viewpoint-0.0/ConstantImageRule/HasColumnKey" \r                    to="java.lang.String"/>\r        </type>
79
80         <type
81             uri="http://www.simantics.org/Viewpoint-0.0/ConstantLabelDecorationRule"
82             class="org.simantics.browsing.ui.model.labeldecorators.ConstantLabelDecorationRule"
83             constructor="create">
84             <graph/>
85             <this/>
86         </type>
87         
88         <resource
89             uri="http://www.simantics.org/Viewpoint-0.0/AlphanumericSorterRule"
90             class="org.simantics.browsing.ui.model.sorters.AlphanumericSorterRule"/>
91         <resource
92             uri="http://www.simantics.org/Viewpoint-0.0/PassThruSorterRule"
93             class="org.simantics.browsing.ui.model.sorters.PassThruSorterRule"/>
94         <resource\r            uri="http://www.simantics.org/Viewpoint-0.0/LinkedListSorterRule"\r            class="org.simantics.browsing.ui.model.sorters.LinkedListSorterRule"/>\r
95         <baseType uri="http://www.simantics.org/Viewpoint-0.0/ImageDecorationRule" />\r        \r        <resource\r            uri="http://www.simantics.org/Viewpoint-0.0/DescriptionTooltipRule"\r            class="org.simantics.browsing.ui.model.tooltips.DescriptionTooltipRule" />
96     </target>
97     
98     <target interface="org.simantics.browsing.ui.model.nodetypes.NodeType">
99         <baseType uri="http://www.simantics.org/Layer0-0.0/Entity" />
100         <type
101             uri="http://www.simantics.org/Viewpoint-0.0/NodeType"
102             class="org.simantics.browsing.ui.model.nodetypes.SpecialNodeType"
103             constructor="create">
104             <graph/>
105             <this/>
106         </type>        
107         <type
108             uri="http://www.simantics.org/Layer0-0.0/Type"
109             class="org.simantics.browsing.ui.model.nodetypes.EntityNodeType"
110             constructor="create">
111             <this/>
112         </type>
113     </target>
114     
115     <target interface="org.simantics.browsing.ui.model.tests.Test">
116         <baseType uri="http://www.simantics.org/Viewpoint-0.0/Test" />
117         <type
118             uri="http://www.simantics.org/Viewpoint-0.0/HasStatementTest"
119             class="org.simantics.browsing.ui.model.tests.HasStatementTest">
120             <single uri="http://www.simantics.org/Viewpoint-0.0/HasStatementTest/HasRelation"/>
121         </type>\r        <type\r            uri="http://www.simantics.org/Viewpoint-0.0/HasInstanceOfTest"\r            class="org.simantics.browsing.ui.model.tests.HasInstanceOfTest">\r            <single uri="http://www.simantics.org/Viewpoint-0.0/HasInstanceOfTest/IsInstanceOf"/>\r        </type>\r        <type\r            uri="http://www.simantics.org/Viewpoint-0.0/HasNegatedTest"\r            class="org.simantics.browsing.ui.model.tests.HasNegatedTest">\r            <single uri="http://www.simantics.org/Viewpoint-0.0/HasNegatedTest/HasTest"\r                to="org.simantics.browsing.ui.model.tests.Test"/>\r        </type>
122         <type\r            uri="http://www.simantics.org/Viewpoint-0.0/AndTest"\r            class="org.simantics.browsing.ui.model.tests.AndTest">\r            <related uri="http://www.simantics.org/Viewpoint-0.0/AndTest/HasTest"\r                to="org.simantics.browsing.ui.model.tests.Test"/>\r        </type>\r        <type\r            uri="http://www.simantics.org/Viewpoint-0.0/OrTest"\r            class="org.simantics.browsing.ui.model.tests.OrTest">\r            <related uri="http://www.simantics.org/Viewpoint-0.0/OrTest/HasTest"\r                to="org.simantics.browsing.ui.model.tests.Test"/>\r        </type>\r        <type\r            uri="http://www.simantics.org/Viewpoint-0.0/InstanceOfTest"\r            class="org.simantics.browsing.ui.model.tests.InstanceOfTest">\r            <graph/>\r            <this/>\r        </type>\r        <type uri="http://www.simantics.org/Viewpoint-0.0/FailTest"\r            class="org.simantics.browsing.ui.model.tests.FailTest"\r            constructor="get">\r        </type>\r    </target>
123     
124     <target interface="org.simantics.browsing.ui.model.actions.IActionCategory">
125         <baseType uri="http://www.simantics.org/Viewpoint-0.0/ActionCategory" />
126         
127         <type uri="http://www.simantics.org/Viewpoint-0.0/ActionCategory"
128               class="org.simantics.browsing.ui.model.actions.ActionCategory"
129               constructor="create">
130               <graph/>
131               <this/>
132         </type>
133     </target>
134
135 </adapters>