]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.plant3d/plugin.xml
Implemented mouse wheel zoom in camera and selector 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             default="false"
9             icon="icons/factory.png"
10             id="org.simantics.plant3d.editor"
11             name="Plant3D Editor">
12       </editor>
13    </extension>
14    <extension
15          point="org.simantics.ui.resourceEditorAdapter">
16       <adapter
17             editorId="org.simantics.plant3d.editor"
18             image="icons/factory.png"
19             label="Plant3D Editor"
20             priority="1"
21             type_uris="http://www.simantics.org/Plant3D-0.1/Plant">
22       </adapter>
23    </extension>
24    <extension
25          point="org.eclipse.ui.perspectives">
26       <perspective
27             class="org.simantics.plant3d.project.P3DPerspectiveFactory"
28             icon="icons/factory.png"
29             id="org.simantics.plant3d.perspective"
30             name="Plant3D">
31       </perspective>
32    </extension>
33    <extension
34          point="org.eclipse.ui.perspectiveExtensions">
35       <perspectiveExtension
36             targetID="org.simantics.plant3d.perspective">
37          <view
38                id="org.simantics.plant3d.ModelBrowser"
39                minimized="false"
40                ratio="0.3"
41                relationship="left"
42                relative="org.eclipse.ui.editorss">
43          </view>
44          <view
45                id="org.simantics.browsing.ui.graph.propertyView"
46                minimized="false"
47                ratio="0.7"
48                relationship="bottom"
49                relative="org.eclipse.ui.editorss"
50                visible="true">
51          </view>
52          <view
53                id="org.simantics.browsing.ui.graph.propertyView:*"
54                minimized="false"
55                relationship="stack"
56                relative="org.simantics.browsing.ui.graph.propertyView"
57                visible="false">
58          </view>
59          <view
60                id="org.simantics.browsing.ui.graph.propertyViewPinned:*"
61                minimized="false"
62                relationship="stack"
63                relative="org.simantics.browsing.ui.graph.propertyView"
64                visible="false">
65          </view>
66          <view
67                id="org.eclipse.ui.views.ContentOutline"
68                minimized="false"
69                ratio="0.8"
70                relationship="right"
71                relative="org.eclipse.ui.editorss"
72                visible="true">
73          </view>
74       </perspectiveExtension>
75    </extension>
76    <extension
77          point="org.eclipse.ui.views">
78       <view
79             class="org.simantics.plant3d.browser.P3DBrowser:browseContext=http://www.simantics.org/CSG-0.1/CSGBrowseContext;browseContext=http://www.simantics.org/Plant3D-0.1/P3DBrowseContext"
80             icon="icons/factory.png"
81             id="org.simantics.plant3d.ModelBrowser"
82             name="Model Browser"
83             restorable="true">
84       </view>
85    </extension>
86    <extension
87          point="org.eclipse.ui.menus">
88       <menuContribution
89             allPopups="false"
90             locationURI="menu:#FileNewMenu">
91          <command
92                commandId="org.simantics.plant3d.newPlant"
93                label="New Plant"
94                style="push">
95          </command>
96          <command
97                commandId="org.simantics.plant3d.newCSGModel"
98                label="New CSG Model"
99                style="push">
100          </command>
101       </menuContribution>
102       <menuContribution
103             allPopups="false"
104             locationURI="toolbar:org.eclipse.ui.main.toolbar">
105          <toolbar
106                id="org.simantics.plant3d.toolbar">
107             <separator
108                   name="view"
109                   visible="true">
110             </separator>
111             <command
112                   commandId="org.simantics.g3d.parallelperspective"
113                   icon="platform:/plugin/com.famfamfam.silk/icons/image.png"
114                   label="Parallel perspective"
115                   style="toggle">
116             </command>
117             <command
118                   commandId="org.simantics.g3d.viewdir"
119                   icon="icons/x-axis.png"
120                   label="View X+"
121                   style="push">
122                <parameter
123                      name="org.simantics.g3d.viewDirection"
124                      value="1,0,0">
125                </parameter>
126             </command>
127             <command
128                   commandId="org.simantics.g3d.viewdir"
129                   icon="icons/x-axis.png"
130                   label="View X-"
131                   style="push">
132                <parameter
133                      name="org.simantics.g3d.viewDirection"
134                      value="-1,0,0">
135                </parameter>
136             </command>
137             <command
138                   commandId="org.simantics.g3d.viewdir"
139                   icon="icons/y-axis.png"
140                   label="View Y+"
141                   style="push">
142                <parameter
143                      name="org.simantics.g3d.viewDirection"
144                      value="0,1,0">
145                </parameter>
146             </command>
147             <command
148                   commandId="org.simantics.g3d.viewdir"
149                   icon="icons/y-axis.png"
150                   label="View Y-"
151                   style="push">
152                <parameter
153                      name="org.simantics.g3d.viewDirection"
154                      value="0,-1,0">
155                </parameter>
156             </command>
157             <command
158                   commandId="org.simantics.g3d.viewdir"
159                   icon="icons/z-axis.png"
160                   label="View Z+"
161                   style="push">
162                <parameter
163                      name="org.simantics.g3d.viewDirection"
164                      value="0,0,1">
165                </parameter>
166             </command>
167             <command
168                   commandId="org.simantics.g3d.viewdir"
169                   icon="icons/z-axis.png"
170                   label="View Z-"
171                   style="push">
172                <parameter
173                      name="org.simantics.g3d.viewDirection"
174                      value="0,0,-1">
175                </parameter>
176             </command>
177          </toolbar>
178       </menuContribution>
179    </extension>
180    <extension
181          point="org.eclipse.ui.commands">
182       <category
183             id="org.simantics.plant3d.category"
184             name="Plant3D commands">
185       </category>
186       <command
187             categoryId="org.simantics.plant3d.category"
188             id="org.simantics.plant3d.newPlant"
189             name="New Plant">
190       </command>
191       <command
192             categoryId="org.simantics.plant3d.category"
193             id="org.simantics.plant3d.newCSGModel"
194             name="New CSG Model">
195       </command>
196    </extension>
197    <extension
198          point="org.eclipse.ui.handlers">
199       <handler
200             class="org.simantics.plant3d.handlers.NewPlantHandler"
201             commandId="org.simantics.plant3d.newPlant">
202       </handler>
203       <handler
204             class="org.simantics.g3d.vtk.handlers.ParallelPerspectiveHandler"
205             commandId="org.simantics.g3d.parallelperspective">
206          <activeWhen>
207             <with
208                   variable="activeEditor">
209                <and>
210                   <instanceof
211                         value="org.simantics.plant3d.editor.Plant3DEditor">
212                   </instanceof>
213                </and>
214             </with>
215          </activeWhen>
216       </handler>
217       <handler
218             class="org.simantics.g3d.vtk.handlers.CameraPositionHandler"
219             commandId="org.simantics.g3d.viewdir">
220          <activeWhen>
221             <with
222                   variable="activeEditor">
223                <and>
224                   <instanceof
225                         value="org.simantics.plant3d.editor.Plant3DEditor">
226                   </instanceof>
227                </and>
228             </with>
229          </activeWhen>
230       </handler>
231       <handler
232             class="org.simantics.g3d.csg.handler.NewCSGModelHandler"
233             commandId="org.simantics.plant3d.newCSGModel">
234       </handler>
235    </extension>
236    <extension
237          point="org.simantics.project.feature">
238       <feature
239             class="org.simantics.plant3d.project.P3DProjectFeature"
240             id="org.simantics.plant3d.project.feature"
241             label="Plant3D Project"
242             published="true">
243          <installGroup
244                id="org.simantics.plant3d.installGroup"
245                version="[1.0.0,2.0.0)">
246          </installGroup>
247       </feature>
248    </extension>
249    <extension
250          point="org.eclipse.ui.contexts">
251       <context
252             id="org.simantics.plant3d.context"
253             name="Plant3D Context">
254       </context>
255    </extension>
256    <extension
257          point="org.simantics.ui.perspectiveContextBinding">
258       <binding
259             contextIds="org.simantics.plant3d.context"
260             perspectiveId="org.simantics.plant3d.perspective">
261       </binding>
262    </extension>
263    <extension
264          point="org.simantics.browsing.ui.common.selectionProcessorBinding">
265       <binding
266             browseContext="http://www.simantics.org/Project-1.0/ProjectBrowseContext">
267          <implementation
268                class="org.simantics.plant3d.property.P3DSelectionProcessor">
269          </implementation>
270       </binding>
271    </extension>
272
273 </plugin>