]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.linking.ui/adapters.xml
Fix possible NPE in SCLExpressionIssueProvider
[simantics/platform.git] / bundles / org.simantics.document.linking.ui / adapters.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <adapters>
3    <target interface="org.simantics.browsing.ui.model.visuals.VisualsRule">
4
5           <resource 
6                 uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointBrowseContext/VariableLabelRule"
7                         class="org.simantics.document.linking.ge.VariableLabelRule" />
8       <resource
9             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointBrowseContext/VariableModifierRule"
10             class="org.simantics.document.linking.ge.VariableModifierRule" />
11       <resource
12             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointBrowseContext/VariableImageRule"
13             class="org.simantics.document.linking.ge.VariableImageRule" />
14       <resource
15             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointBrowseContext/VariableImageDecorationRule"
16             class="org.simantics.document.linking.ge.VariableImageDecorationRule" />
17    </target>
18    <target interface="org.simantics.browsing.ui.model.children.ChildRule">
19         <resource uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointBrowseContext/ChildRule"
20             class="org.simantics.document.linking.ge.PropertyChildRule"/>
21         <resource uri="http://www.simantics.org/DocumentLink-1.0/SourceObjectViewpointBrowseContext/ChildRule"
22             class="org.simantics.document.linking.ge.ObjectChildRule"/>
23         <resource uri="http://www.simantics.org/DocumentLink-1.0/ModelViewpointBrowseContext/ChildRule"
24             class="org.simantics.document.linking.ge.ModelChildRule">
25             <graph/>
26                         <this/>
27                 </resource>
28                 <resource uri="http://www.simantics.org/DocumentLink-1.0/ModelViewpointBrowseContext2/ChildRule"
29             class="org.simantics.document.linking.ge.ModelChildRule">
30             <graph/>
31                         <this/>
32                 </resource>
33    </target>
34
35    <target interface="org.simantics.db.layer0.adapter.DropActionFactory">        
36         <resource
37             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointActionContext/SourceObjectDropAction"
38             class="org.simantics.document.linking.ge.SourceObjectDropAction" />
39    </target> 
40    
41    <target interface="org.simantics.db.layer0.adapter.ActionFactory">
42         <resource
43             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointActionContext/ShowDocument"
44             class="org.simantics.document.linking.ge.ShowDocumentAction" />
45          <resource
46             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointActionContext/ShowDocumentExternal"
47             class="org.simantics.document.linking.ge.ShowDocumentWithAction" />
48                 <resource
49             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointActionContext/RemoveSource"
50             class="org.simantics.document.linking.ge.RemoveSourceAction" />
51         <resource
52             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointActionContext/ReplaceWithLatest"
53             class="org.simantics.document.linking.ge.ReplaceWithLatestAction" />
54         <resource
55             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointActionContext/FixAllReferences"
56             class="org.simantics.document.linking.ge.FixAllReferencesAction" />
57             
58    </target>   
59    
60    <target interface="org.simantics.browsing.ui.model.tests.Test">
61                 <type
62             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointActionContext/VariableInstanceTest"
63             class="org.simantics.document.linking.ge.VariableInstanceOfTest">
64             <single uri="http://www.simantics.org/Viewpoint-0.0/HasInstanceOfTest/IsInstanceOf"/>
65         </type>
66         <type
67             uri="http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointActionContext/SourceReferenceOldTest"
68             class="org.simantics.document.linking.ge.SourceReferenceOldTest">
69         </type>
70    </target>   
71    <!--  Adapting Diagram element selections to component selections -->
72    <target interface="org.simantics.document.linking.adapters.SourceObjectAdapter">
73                 <type
74             uri="http://www.simantics.org/Diagram-2.2/DefinedElement"
75             class="org.simantics.document.linking.adapters.DiagramElementAdapter">
76         </type>
77    </target> 
78    
79    
80    <!-- Search -->
81         <target interface="org.simantics.scl.runtime.function.Function">
82                 <resource uri="http://www.simantics.org/DocumentLink-1.0/SearchFunction"
83                         class="org.simantics.document.linking.function.SearchFunction">
84                 </resource>
85         </target>
86  
87 </adapters>