]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.plant3d/plugin.xml
PipeRun reverse action
[simantics/3d.git] / org.simantics.plant3d / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4    <extension
5          point="org.eclipse.ui.editors">
6       <editor
7             class="org.simantics.plant3d.editor.Plant3DEditor"
8             contributorClass="org.simantics.ui.toolbar.ToolbarContributor:toolbar=org.simantics.plant3d.toolbar;hide=true"
9             default="false"
10             icon="icons/factory.png"
11             id="org.simantics.plant3d.editor"
12             name="Plant3D Editor">
13       </editor>
14    </extension>
15    <extension
16          point="org.simantics.ui.resourceEditorAdapter">
17       <adapter
18             editorId="org.simantics.plant3d.editor"
19             image="icons/factory.png"
20             label="Plant3D Editor"
21             priority="1"
22             type_uris="http://www.simantics.org/Plant3D-0.1/Plant">
23       </adapter>
24    </extension>
25    <extension
26          point="org.eclipse.ui.menus">
27       <menuContribution
28             allPopups="false"
29             locationURI="toolbar:org.eclipse.ui.main.toolbar">
30          <toolbar
31                id="org.simantics.plant3d.toolbar"
32                label="Plant 3D Toolbar">
33             <separator
34                   name="view"
35                   visible="true">
36             </separator>
37             <visibleWhen
38                   checkEnabled="false">
39                <with
40                      variable="activeEditorId">
41                   <equals
42                         value="org.simantics.plant3d.editor">
43                   </equals>
44                </with>
45             </visibleWhen>
46          </toolbar>
47       </menuContribution>
48    </extension>
49    <extension
50          point="org.eclipse.ui.commands">
51       <category
52             id="org.simantics.plant3d.category"
53             name="Plant3D commands">
54       </category>
55       <command
56             categoryId="org.simantics.plant3d.category"
57             id="org.simantics.plant3d.newPlant"
58             name="New Plant">
59       </command>
60       <command
61             categoryId="org.simantics.plant3d.category"
62             id="org.simantics.plant3d.newCSGModel"
63             name="New CSG Model">
64       </command>
65    </extension>
66    <extension
67          point="org.eclipse.ui.handlers">
68       <handler
69             class="org.simantics.plant3d.handlers.NewPlantHandler"
70             commandId="org.simantics.plant3d.newPlant">
71       </handler>
72       <handler
73             class="org.simantics.g3d.vtk.handlers.ParallelPerspectiveHandler"
74             commandId="org.simantics.g3d.parallelperspective">
75          <activeWhen>
76             <with
77                   variable="activeEditor">
78                <and>
79                   <instanceof
80                         value="org.simantics.plant3d.editor.Plant3DEditor">
81                   </instanceof>
82                </and>
83             </with>
84          </activeWhen>
85       </handler>
86       <handler
87             class="org.simantics.g3d.vtk.handlers.CameraPositionHandler"
88             commandId="org.simantics.g3d.viewdir">
89          <activeWhen>
90             <with
91                   variable="activeEditor">
92                <and>
93                   <instanceof
94                         value="org.simantics.plant3d.editor.Plant3DEditor">
95                   </instanceof>
96                </and>
97             </with>
98          </activeWhen>
99       </handler>
100       <handler
101             class="org.simantics.g3d.csg.handler.NewCSGModelHandler"
102             commandId="org.simantics.plant3d.newCSGModel">
103       </handler>
104    </extension>
105    <extension
106          point="org.eclipse.ui.contexts">
107       <context
108             id="org.simantics.plant3d.context"
109             name="Plant3D Context">
110       </context>
111    </extension>
112    <extension
113          point="org.simantics.browsing.ui.common.selectionProcessorBinding">
114       <binding
115             browseContext="http://www.simantics.org/Project-1.0/ProjectBrowseContext">
116          <implementation
117                class="org.simantics.plant3d.property.P3DSelectionProcessor">
118          </implementation>
119       </binding>
120    </extension>
121    <extension
122          point="org.simantics.ui.toolbarCommand">
123             <command
124             commandId="org.simantics.g3d.parallelperspective"
125             image="platform:/plugin/com.famfamfam.silk/icons/image.png"
126             name="Parallel perspective"
127             toolbarId="org.simantics.plant3d.toolbar"
128             type="toggle">
129       </command>
130       <command
131             commandId="org.simantics.g3d.viewdir"
132             image="platform:/plugin/org.simantics.plant3d/icons/x-axis.png"
133             name="View X+"
134             toolbarId="org.simantics.plant3d.toolbar"
135             type="push">
136          <parameter
137                name="org.simantics.g3d.viewDirection"
138                value="1,0,0">
139          </parameter>
140       </command>
141       <command
142             commandId="org.simantics.g3d.viewdir"
143             image="platform:/plugin/org.simantics.plant3d/icons/x-axis.png"
144             name="View X-"
145             toolbarId="org.simantics.plant3d.toolbar"
146             type="push">
147          <parameter
148                name="org.simantics.g3d.viewDirection"
149                value="-1,0,0">
150          </parameter>
151       </command>
152       <command
153             commandId="org.simantics.g3d.viewdir"
154             image="platform:/plugin/org.simantics.plant3d/icons/y-axis.png"
155             name="View Y+"
156             toolbarId="org.simantics.plant3d.toolbar"
157             type="push">
158          <parameter
159                name="org.simantics.g3d.viewDirection"
160                value="0,1,0">
161          </parameter>
162       </command>
163       <command
164             commandId="org.simantics.g3d.viewdir"
165             image="platform:/plugin/org.simantics.plant3d/icons/y-axis.png"
166             name="View Y-"
167             toolbarId="org.simantics.plant3d.toolbar"
168             type="push">
169          <parameter
170                name="org.simantics.g3d.viewDirection"
171                value="0,-1,0">
172          </parameter>
173       </command>
174       <command
175             commandId="org.simantics.g3d.viewdir"
176             image="platform:/plugin/org.simantics.plant3d/icons/z-axis.png"
177             name="View Z+"
178             toolbarId="org.simantics.plant3d.toolbar"
179             type="push">
180          <parameter
181                name="org.simantics.g3d.viewDirection"
182                value="0,0,1">
183          </parameter>
184       </command>
185       <command
186             commandId="org.simantics.g3d.viewdir"
187             image="platform:/plugin/org.simantics.plant3d/icons/z-axis.png"
188             name="View Z-"
189             toolbarId="org.simantics.plant3d.toolbar"
190             type="push">
191          <parameter
192                name="org.simantics.g3d.viewDirection"
193                value="0,0,-1">
194          </parameter>
195       </command>
196    </extension>
197 </plugin>