]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.image.ui/plugin.xml
Change universal type variables to existential in requested value types
[simantics/platform.git] / bundles / org.simantics.image.ui / plugin.xml
1 <?eclipse version="3.2"?>
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 <plugin>
15    <extension
16          point="org.eclipse.ui.commands">
17       <category
18             id="org.simantics.image.ui.category"
19             name="Image">
20       </category>
21 <!--
22       <command
23             categoryId="org.simantics.image.ui.category"
24             id="org.simantics.image.ui.importSVG"
25             name="Import SVG">
26       </command>
27 -->
28       <command
29             categoryId="org.simantics.image.ui.category"
30             id="org.simantics.image.ui.importImage"
31             name="Import Image">
32       </command>
33    </extension>
34    <extension point="org.eclipse.ui.handlers">
35 <!--
36       <handler
37             class="org.simantics.image.ui.actions.ImportSVG"
38             commandId="org.simantics.image.ui.importSVG">
39       </handler>
40 -->
41       <handler
42             class="org.simantics.image.ui.modelBrowser.handlers.ImportImageHandler"
43             commandId="org.simantics.image.ui.importImage">
44          <activeWhen>
45             <with
46                   variable="selection">
47               <test
48                    args="org.simantics.image.ui.modelBrowser.ImagesNode"
49                     property="org.simantics.modeling.ui.nodeClass">
50               </test>
51             </with>
52          </activeWhen>
53       </handler>
54    </extension>
55    <extension
56          point="org.eclipse.ui.editors">  
57       <editor
58             class="org.simantics.image.ui.editor.ImageEditor"
59             icon="icons/image.png"
60             id="org.simantics.image.ui.image.editor"
61             matchingStrategy="org.simantics.ui.workbench.editor.input.ResourceEditorInputMatchingStrategy"
62             name="Image Viewer">
63       </editor>
64    </extension>
65
66    <extension
67          point="org.simantics.ui.resourceEditorAdapter">
68       <adapter
69             editorId="org.simantics.image.ui.image.editor"
70             id="org.simantics.image.ui.image.adapter"
71             priority="6"
72             type_uris="http://www.simantics.org/Image2-0.0/Image">
73       </adapter>
74    </extension>
75    <extension
76          point="org.simantics.browsing.ui.common.viewpointContributionBinding">
77       <binding browseContext="http://www.simantics.org/Image-0.0/Browser">
78          <implementation class="org.simantics.image.ui.modelBrowser.Images" preference="2.0" />
79          <implementation class="org.simantics.image.ui.modelBrowser.Image" preference="2.0" />
80       </binding>    
81    </extension>
82    <extension
83          point="org.simantics.browsing.ui.common.labelerBinding">
84       <binding browseContext="http://www.simantics.org/Image-0.0/Browser">
85         <implementation class="org.simantics.image.ui.modelBrowser.ImagesLabeler" preference="2.0"/>
86         <implementation class="org.simantics.image.ui.modelBrowser.ImageLabeler" preference="2.0"/>
87       </binding>
88    </extension>
89    <extension
90          point="org.simantics.browsing.ui.common.imagerBinding">
91       <binding browseContext="http://www.simantics.org/Image-0.0/Browser">
92         <implementation class="org.simantics.image.ui.modelBrowser.ImagesImager" preference="2.0"/>
93         <implementation class="org.simantics.image.ui.modelBrowser.ImageImager" preference="2.0"/>
94       </binding>
95    </extension>
96    
97    <extension point="org.simantics.scl.reflection.binding">
98       <namespace path="http://www.simantics.org/Image2-0.0/Functions">
99          <externalClass className="org.simantics.db.Resource"/>
100          <externalClass className="org.simantics.db.layer0.variable.Variable"/>
101          <externalClass className="org.simantics.db.ReadGraph"/>
102          <class className="org.simantics.image.ui.function.All"/>
103       </namespace>
104    </extension>
105 </plugin>