]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ui/adapters.xml
Remove duplicate InputChannel inner classes
[simantics/platform.git] / bundles / org.simantics.modeling.ui / 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.ui.fonts.FontDescriptor">
17                 <adapter uri="http://www.simantics.org/Diagram-0.0/ObtainedFont"
18                     contextClass="org.simantics.db.RelationContext"
19                         adapterClass="org.simantics.modeling.ui.diagram.monitor.ObtainedFontAdapter"/>
20         </target>
21
22         <target interface="org.simantics.ui.fonts.FontDescriptor">
23                 <adapter uri="http://www.simantics.org/Diagram-0.0/RealizedFont"
24                     contextClass="org.simantics.db.RelationContext"
25                         adapterClass="org.simantics.modeling.ui.diagram.monitor.RealizedFontAdapter"/>
26         </target>
27
28         <target interface="org.simantics.common.color.Color">
29                 <adapter uri="http://www.simantics.org/Diagram-0.0/ObtainedColor"
30                     contextClass="org.simantics.db.RelationContext"
31                         adapterClass="org.simantics.modeling.ui.diagram.monitor.ObtainedColorAdapter"/>
32         </target>
33
34         <target interface="org.simantics.common.color.Color">
35                 <adapter uri="http://www.simantics.org/Diagram-0.0/RealizedColor"
36                     contextClass="org.simantics.db.RelationContext"
37                         adapterClass="org.simantics.modeling.ui.diagram.monitor.RealizedColorAdapter"/>
38         </target>
39
40         <target interface="org.simantics.common.format.Formatter">
41                 <adapter uri="http://www.simantics.org/Diagram-0.0/ObtainedFormatter"
42                     contextClass="org.simantics.db.RelationContext"
43                         adapterClass="org.simantics.modeling.ui.diagram.monitor.ObtainedFormatterAdapter"/>
44         </target>
45
46         <target interface="org.simantics.common.format.Formatter">
47                 <adapter uri="http://www.simantics.org/Diagram-0.0/RealizedFormatter"
48                     contextClass="org.simantics.db.RelationContext"
49                         adapterClass="org.simantics.modeling.ui.diagram.monitor.RealizedFormatterAdapter"/>
50         </target>
51
52         <target interface="java.lang.String">
53                 <adapter uri="http://www.simantics.org/Diagram-0.0/ObtainedMonitorExpression"
54                         contextClass="org.simantics.db.RelationContext"
55                         adapterClass="org.simantics.modeling.ui.diagram.monitor.ObtainedExpressionAdapter"/>
56                 <adapter uri="http://www.simantics.org/Charts-0.0/ObtainedDouble"
57                         contextClass="org.simantics.db.RelationContext"
58                         adapterClass="org.simantics.modeling.ui.chart.property.ObtainedDoubleStringAdapter"/>
59         </target>
60
61         <target interface="java.lang.Double">
62                 <adapter
63                         uri="http://www.simantics.org/Charts-0.0/ObtainedDouble"
64                         contextClass="org.simantics.db.RelationContext"
65                         adapterClass="org.simantics.modeling.ui.chart.property.ObtainedDoubleAdapter" />
66         </target>
67
68         <target interface="org.simantics.common.color.Color">
69                 <type uri="http://www.simantics.org/Diagram-0.0/RGB"
70                         class="org.simantics.modeling.ui.diagram.monitor.RGB">
71                         <graph />
72                         <this />
73                 </type>
74         </target>
75
76     <target interface="org.simantics.browsing.ui.model.children.ChildRule">
77         <resource uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/ChildrenInActiveExperiment"
78                   class="org.simantics.modeling.ui.viewpoint.ChildrenInActiveExperiment">
79             <graph/>
80         </resource>
81         <resource uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/VariableChildRule"
82                   class="org.simantics.modeling.ui.viewpoint.VariableChildRule"/>
83         <type uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/VariablePropertyRule"
84                   class="org.simantics.modeling.ui.viewpoint.VariablePropertyRule">
85                   <graph />
86                   <this />
87         </type>
88     </target>
89
90     <target interface="org.simantics.browsing.ui.model.visuals.VisualsRule">
91         <resource uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/VariableLabelRule"
92                   class="org.simantics.modeling.ui.viewpoint.VariableLabelRule"/>
93         <resource
94             uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/ExperimentLabelRule"
95             class="org.simantics.structural.ui.modelBrowser.contributions.ExperimentLabelRule"
96             constructor="get" />
97         <resource
98             uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/ComponentTypeLockStatusImageDecorationRule"
99             class="org.simantics.structural.ui.modelBrowser.contributions.ComponentTypeLockStatusImageDecorationRule"/>
100     </target>
101
102         <target interface="org.simantics.db.layer0.variable.Expression">
103                 <type uri="http://www.simantics.org/Modeling-0.0/BasicExpression" class="org.simantics.modeling.ui.expression.BasicExpression">
104                         <this />
105                 </type>
106         </target>
107
108         <target interface="org.simantics.db.layer0.variable.EquationExpression">
109                 <type uri="http://www.simantics.org/Modeling-0.0/BasicExpression" class="org.simantics.modeling.ui.expression.BasicExpression">
110                         <this />
111                 </type>
112         </target>
113
114         <target
115                 interface="org.simantics.scenegraph.adapters.ISceneGraphProvider">
116                 <type
117                         uri="http://www.simantics.org/Structural-0.0/Component"
118                         class="org.simantics.modeling.ui.sg.DiagramSceneGraphProvider">
119                         <graph />
120                         <this />
121                 </type>
122         </target>
123
124         <target
125                 interface="org.simantics.modeling.ui.modelBrowser.model.INode">
126                 <baseType
127                         uri="http://www.simantics.org/Structural-0.0/Component" />
128                 <baseType
129                         uri="http://www.simantics.org/Structural-0.0/ComponentType" />
130
131                 <type
132                         uri="http://www.simantics.org/Structural-0.0/Component"
133                         class="org.simantics.modeling.ui.modelBrowser.model.Component">
134                         <graph />
135                         <this />
136                 </type>
137
138                 <type
139                         uri="http://www.simantics.org/Structural-0.0/Composite"
140                         class="org.simantics.modeling.ui.modelBrowser.model.Composite">
141                         <graph />
142                         <this />
143                 </type>
144
145                 <type
146                         uri="http://www.simantics.org/Structural-0.0/ComponentType"
147                         class="org.simantics.modeling.ui.modelBrowser.model.ComponentType">
148                         <graph />
149                         <this />
150                 </type>
151
152                 <type
153                         uri="http://www.simantics.org/Simulation-0.0/Model"
154                         class="org.simantics.modeling.ui.modelBrowser.model.Model">
155                         <graph />
156                         <this />
157                 </type>
158
159         <!--
160         <type
161             uri="http://www.simantics.org/Charts-0.0/ChartGroup"
162             class="org.simantics.modeling.ui.modelBrowser.model.ChartGroup">
163             <graph />
164             <this />
165         </type>
166
167         <type
168             uri="http://www.simantics.org/Charts-0.0/Chart"
169             class="org.simantics.modeling.ui.modelBrowser.model.Chart">
170             <graph />
171             <this />
172         </type>
173
174         <type
175             uri="http://www.simantics.org/Charts-0.0/TrendItem"
176             class="org.simantics.modeling.ui.modelBrowser.model.TrendItem">
177             <graph />
178             <this />
179         </type>
180
181         <type
182             uri="http://www.simantics.org/Modeling-0.0/SubscriptionItem"
183             class="org.simantics.modeling.ui.modelBrowser.model.SubscriptionItem">
184             <graph />
185             <this />
186         </type>
187
188         <type
189             uri="http://www.simantics.org/Modeling-0.0/Subscription"
190             class="org.simantics.modeling.ui.modelBrowser.model.Subscription">
191             <this />
192         </type>
193         -->
194                 <type
195                         uri="http://www.simantics.org/Simulation-0.0/Experiment"
196                         class="org.simantics.modeling.ui.modelBrowser.model.Experiment">
197                         <graph />
198                         <this />
199                 </type>
200                 
201                 <type
202                         uri="http://www.simantics.org/Image-0.0/Image"
203                         class="org.simantics.modeling.ui.modelBrowser.model.Image">
204                         <this />
205                 </type>
206
207                 <type
208                         uri="http://www.simantics.org/Simulation-0.0/State"
209                         class="org.simantics.modeling.ui.modelBrowser.model.State">
210                         <this />
211                 </type>
212
213         </target>
214
215         <target
216                 interface="org.simantics.ui.icons.ImageDescriptorProvider">
217                 <!--
218                 <resource
219                         uri="http://www.simantics.org/Modeling-0.0/Operations/NewComponentType"
220                         class="org.simantics.ui.icons.BundleImageDescriptorProvider">
221                         <bundle />
222                         <string>icons/box_add.png</string>
223                 </resource>
224                 -->
225                 <resource
226                         uri="http://www.simantics.org/Modeling-0.0/Operations/NavigateToTarget"
227                         class="org.simantics.ui.icons.BundleImageDescriptorProvider">
228                         <bundle />
229                         <string>icons/bullet_go.png</string>
230                 </resource>
231         <resource
232             uri="http://www.simantics.org/Layer0X-0.0/DependenciesRelation"
233             class="org.simantics.ui.icons.BundleImageDescriptorProvider">
234             <bundle />
235             <string>icons/table_relationship.png</string>
236         </resource>
237         <type
238             uri="http://www.simantics.org/Diagram-0.0/ProfileEntry"
239             class="org.simantics.ui.icons.BundleImageDescriptorProvider">
240             <bundle />
241             <string>icons/bullet_yellow.png</string>
242         </type>
243         <type
244             uri="http://www.simantics.org/Diagram-0.0/Profile"
245             class="org.simantics.ui.icons.BundleImageDescriptorProvider">
246             <bundle />
247             <string>icons/bullet_green.png</string>
248         </type>
249         </target>
250
251         <target interface="org.simantics.diagram.adapter.ElementFactory">
252                 <resource uri="http://www.simantics.org/Diagram-0.0/Monitor"
253                         class="org.simantics.modeling.ui.diagram.monitor.MonitorClassFactory2" />
254                 <resource uri="http://www.simantics.org/Diagram-0.0/Slider"
255                         class="org.simantics.modeling.ui.diagram.SliderClassFactory" />                 
256                 <resource uri="http://www.simantics.org/Diagram-0.0/SymbolMonitor"
257                         class="org.simantics.modeling.ui.diagram.SymbolMonitorClassFactory" />
258                 <type uri="http://www.simantics.org/Diagram-0.0/Monitor"
259                         class="org.simantics.modeling.ui.diagram.monitor.MonitorClassFactory2" />
260                 <type uri="http://www.simantics.org/Diagram-0.0/Slider"
261                         class="org.simantics.modeling.ui.diagram.SliderClassFactory" />                 
262                 <type uri="http://www.simantics.org/Diagram-0.0/SymbolMonitor"
263                         class="org.simantics.modeling.ui.diagram.SymbolMonitorClassFactory" />
264         </target>
265
266         <target interface="org.simantics.diagram.synchronization.graph.ElementWriter">
267                 <resource uri="http://www.simantics.org/Diagram-0.0/Monitor"
268                         class="org.simantics.modeling.ui.diagram.monitor.MonitorWriter" />
269         </target>
270
271         <target interface="org.simantics.structural.ui.modelBrowser.nodes.AbstractNode">
272                 <type uri="http://www.simantics.org/Charts-0.0/Chart"
273                         class="org.simantics.modeling.ui.modelBrowser2.model.ChartNode">
274                         <this />
275                 </type>
276                 <type uri="http://www.simantics.org/Charts-0.0/ChartGroup"
277                         class="org.simantics.modeling.ui.modelBrowser2.model.ChartGroupNode">
278                         <this />
279                 </type>
280                 <type uri="http://www.simantics.org/Image-0.0/Image"
281                         class="org.simantics.modeling.ui.modelBrowser2.model.ImageNode">
282                         <this />
283                 </type>
284                 <type uri="http://www.simantics.org/Layer0X-0.0/RelationView"
285                         class="org.simantics.modeling.ui.modelBrowser2.model.RelationViewNode">
286                         <this />
287                 </type>
288                 <type uri="http://www.simantics.org/Spreadsheet-0.0/Spreadsheet"
289                         class="org.simantics.modeling.ui.modelBrowser2.model.SpreadsheetNode">
290                         <this />
291                 </type>
292                 <type uri="http://www.simantics.org/Simulation-0.0/State"
293                         class="org.simantics.modeling.ui.modelBrowser2.model.StateNode">
294                         <this />
295                 </type>
296                 <type uri="http://www.simantics.org/Modeling-0.0/Subscription"
297                         class="org.simantics.modeling.ui.modelBrowser2.model.SubscriptionNode">
298                         <this />
299                 </type>
300                 <type uri="http://www.simantics.org/Modeling-0.0/Subscription/Item"
301                         class="org.simantics.modeling.ui.modelBrowser2.model.SubscriptionItemNode">
302                         <this />
303                 </type>
304                 <type uri="http://www.simantics.org/Charts-0.0/Chart/Item"
305                         class="org.simantics.modeling.ui.modelBrowser2.model.TrendItemNode">
306                         <this />
307                 </type>
308         </target>
309
310         <target interface="org.simantics.modeling.ui.modelBrowser2.contributions.RelationViewContributor">
311                 <type uri="http://www.simantics.org/Modeling-0.0/DependenciesView"
312                         class="org.simantics.modeling.ui.modelBrowser2.contributions.DependenciesViewContributor">
313                 </type>
314         </target>
315
316         <target interface="org.simantics.db.layer0.adapter.ActionFactory">
317                 <resource
318                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/NewComponentType"
319                         class="org.simantics.modeling.ui.actions.NewComponentTypeAction" />
320                 <resource
321                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/NewProceduralComponentType"
322                         class="org.simantics.modeling.ui.actions.NewProceduralComponentType" />
323                 <resource
324                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/NewDocument"
325                         class="org.simantics.modeling.ui.actions.NewDocument" />
326                 <resource
327                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/NewLibrary"
328                         class="org.simantics.modeling.ui.actions.NewLibrary" />
329                 <resource
330                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/NewLocalLibrary"
331                         class="org.simantics.modeling.ui.actions.NewLocalLibrary" />
332                 <resource
333                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/MigrateComponentType"
334                         class="org.simantics.modeling.ui.actions.MigrateComponentType" />
335 <!--            <resource -->
336 <!--                    uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/MigrateMasterTypical" -->
337 <!--                    class="org.simantics.modeling.ui.actions.MigrateMasterTypical" /> -->
338                 <resource
339                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/CompilePGraphs"
340                         class="org.simantics.modeling.ui.actions.CompilePGraphsAction" />
341                 <resource
342                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/Delete"
343                         class="org.simantics.modeling.ui.actions.Delete" />
344         <resource
345             uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/NewConnectionPoint"
346             class="org.simantics.modeling.ui.actions.NewConnectionPoint" />                     
347         <resource
348             uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/NewSymbol"
349             class="org.simantics.modeling.ui.actions.NewSymbol" />
350                 <resource
351                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/AssignSymbolGroup"
352                         class="org.simantics.modeling.ui.actions.AssignSymbolGroup" />
353                 <resource
354                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/ConfigureConnectionTypes"
355                         class="org.simantics.modeling.ui.actions.ConfigureConnectionTypes" />
356                 <resource
357                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/MergeFlags"
358                         class="org.simantics.modeling.ui.actions.MergeFlagsAction" />
359         <resource
360             uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/RenameDiagramComponents"
361             class="org.simantics.modeling.ui.actions.RenameDiagramComponents" />
362         <resource
363             uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/NewSCLQuery"
364             class="org.simantics.modeling.ui.actions.NewSCLQuery" />
365         <resource
366             uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/Copy"
367             class="org.simantics.modeling.ui.actions.Copy" />
368         <resource
369             uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/Cut"
370             class="org.simantics.modeling.ui.actions.Cut" />
371         <resource
372             uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/Paste"
373             class="org.simantics.modeling.ui.actions.Paste" />
374         <resource
375             uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/Lock"
376             class="org.simantics.modeling.ui.actions.LockAction" />
377         <resource
378             uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/Unlock"
379             class="org.simantics.modeling.ui.actions.UnlockAction" />            
380                 <resource
381                         uri="http://www.simantics.org/Modeling-0.0/NewMasterTypicalDiagram"
382                         class="org.simantics.modeling.ui.typicals.NewMasterTypicalDiagram" />
383                 <resource
384                         uri="http://www.simantics.org/Modeling-0.0/NewTypicalDiagramInstance"
385                         class="org.simantics.modeling.ui.typicals.NewTypicalDiagramInstance" />
386                 <resource
387                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/ImportImages"
388                         class="org.simantics.image.ui.ImportImagesActionFactory" />
389                 <resource
390                         uri="http://www.simantics.org/Modeling-0.0/ModelingActionContext/Actions/RunSCLScript"
391                         class="org.simantics.modeling.ui.scl.scriptEditor.RunSCLScriptActionFactory" />
392         </target>
393
394         <target interface="org.simantics.browsing.ui.model.visuals.VisualsRule">
395                 <resource
396                         uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/SubscriptionLabelRule"
397                         class="org.simantics.modeling.ui.modelBrowser2.label.SubscriptionLabelRule"
398                         constructor="get" />
399                 <resource
400                         uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/SubscriptionImageRule"
401                         class="org.simantics.modeling.ui.modelBrowser2.image.SubscriptionImageRule"
402                         constructor="get" />
403                 <resource
404                         uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/SubscriptionItemLabelRule"
405                         class="org.simantics.modeling.ui.modelBrowser2.label.SubscriptionItemLabelRule" />
406                 <resource
407                         uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/SubscriptionItemLabelDecorationRule"
408                         class="org.simantics.modeling.ui.modelBrowser2.label.SubscriptionItemLabelDecorationRule" />
409                 <resource
410                         uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/ConnectionRelationLabelDecorationRule"
411                         class="org.simantics.modeling.ui.modelBrowser2.label.ConnectionRelationLabelDecorationRule" />
412                 <resource
413                         uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/ConnectionRelationModifierRule"
414                         class="org.simantics.modeling.ui.modelBrowser2.label.ConnectionRelationModifierRule" />
415         </target>
416
417         <target interface="org.simantics.browsing.ui.model.tests.Test">
418                 <resource
419                         uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/IsComponent"
420                         class="org.simantics.modeling.ui.modelBrowser2.contributions.IsComponentTest"
421                         constructor="get" />
422                 <resource
423                         uri="http://www.simantics.org/Modeling-0.0/ModelingBrowseContext/IsUserDefinedComponentTest"
424                         class="org.simantics.modeling.ui.modelBrowser2.contributions.IsUserDefinedComponentTest"
425                         constructor="get" />
426         </target>
427
428         <target interface="org.simantics.diagram.handler.CopyPasteStrategy">
429                 <type uri="http://www.simantics.org/Diagram-0.0/Diagram"
430                         class="org.simantics.diagram.handler.DefaultCopyPasteStrategy" />
431         </target>
432
433         <target interface="org.simantics.diagram.synchronization.CopyAdvisor">
434                 <type uri="http://www.simantics.org/Diagram-0.0/Diagram"
435                         class="org.simantics.modeling.mapping.DefaultMappedCopyAdvisor">
436                 </type>
437         </target>
438
439         <target interface="org.simantics.ui.workbench.IEditorNamingService">
440                 <type uri="http://www.simantics.org/Structural-0.0/ProceduralComponentTypeCode"
441                         class="org.simantics.modeling.ui.componentTypeEditor.ProceduralComponentTypeEditorNamingService">
442                 </type>
443         </target>
444
445         <target interface="org.simantics.scenegraph.profile.Style">
446                 <resource uri="http://www.simantics.org/Modeling-0.0/IssueDecorationStyle"
447                         class="org.simantics.modeling.ui.diagram.style.IssueDecorationStyle">
448                 </resource>
449         </target>
450
451 </adapters>