]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.plant3d/plugin.xml
Gitignores
[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       </menuContribution>
97       <menuContribution
98             allPopups="false"
99             locationURI="toolbar:org.eclipse.ui.main.toolbar">
100          <toolbar
101                id="org.simantics.plant3d.toolbar">
102             <separator
103                   name="view"
104                   visible="true">
105             </separator>
106             <command
107                   commandId="org.simantics.g3d.parallelperspective"
108                   icon="platform:/plugin/com.famfamfam.silk/icons/image.png"
109                   label="Parallel perspective"
110                   style="toggle">
111             </command>
112             <command
113                   commandId="org.simantics.g3d.viewdir"
114                   icon="icons/x-axis.png"
115                   label="View X+"
116                   style="push">
117                <parameter
118                      name="org.simantics.g3d.viewDirection"
119                      value="1,0,0">
120                </parameter>
121             </command>
122             <command
123                   commandId="org.simantics.g3d.viewdir"
124                   icon="icons/x-axis.png"
125                   label="View X-"
126                   style="push">
127                <parameter
128                      name="org.simantics.g3d.viewDirection"
129                      value="-1,0,0">
130                </parameter>
131             </command>
132             <command
133                   commandId="org.simantics.g3d.viewdir"
134                   icon="icons/y-axis.png"
135                   label="View Y+"
136                   style="push">
137                <parameter
138                      name="org.simantics.g3d.viewDirection"
139                      value="0,1,0">
140                </parameter>
141             </command>
142             <command
143                   commandId="org.simantics.g3d.viewdir"
144                   icon="icons/y-axis.png"
145                   label="View Y-"
146                   style="push">
147                <parameter
148                      name="org.simantics.g3d.viewDirection"
149                      value="0,-1,0">
150                </parameter>
151             </command>
152             <command
153                   commandId="org.simantics.g3d.viewdir"
154                   icon="icons/z-axis.png"
155                   label="View Z+"
156                   style="push">
157                <parameter
158                      name="org.simantics.g3d.viewDirection"
159                      value="0,0,1">
160                </parameter>
161             </command>
162             <command
163                   commandId="org.simantics.g3d.viewdir"
164                   icon="icons/z-axis.png"
165                   label="View Z-"
166                   style="push">
167                <parameter
168                      name="org.simantics.g3d.viewDirection"
169                      value="0,0,-1">
170                </parameter>
171             </command>
172          </toolbar>
173       </menuContribution>
174    </extension>
175    <extension
176          point="org.eclipse.ui.commands">
177       <category
178             id="org.simantics.plant3d.category"
179             name="Plant3D commands">
180       </category>
181       <command
182             category="org.simantics.plant3d.category"
183             id="org.simantics.plant3d.newPlant"
184             name="New Plant">
185       </command>
186    </extension>
187    <extension
188          point="org.eclipse.ui.handlers">
189       <handler
190             class="org.simantics.plant3d.handlers.NewPlantHandler"
191             commandId="org.simantics.plant3d.newPlant">
192       </handler>
193       <handler
194             class="org.simantics.g3d.vtk.handlers.ParallelPerspectiveHandler"
195             commandId="org.simantics.g3d.parallelperspective">
196          <activeWhen>
197             <with
198                   variable="activeEditor">
199                <and>
200                   <instanceof
201                         value="org.simantics.plant3d.editor.Plant3DEditor">
202                   </instanceof>
203                </and>
204             </with>
205          </activeWhen>
206       </handler>
207       <handler
208             class="org.simantics.g3d.vtk.handlers.CameraPositionHandler"
209             commandId="org.simantics.g3d.viewdir">
210          <activeWhen>
211             <with
212                   variable="activeEditor">
213                <and>
214                   <instanceof
215                         value="org.simantics.plant3d.editor.Plant3DEditor">
216                   </instanceof>
217                </and>
218             </with>
219          </activeWhen>
220       </handler>
221    </extension>
222    <extension
223          point="org.simantics.project.feature">
224       <feature
225             class="org.simantics.plant3d.project.P3DProjectFeature"
226             id="org.simantics.plant3d.project.feature"
227             label="Plant3D Project"
228             published="true">
229          <installGroup
230                id="org.simantics.plant3d.installGroup"
231                version="[1.0.0,2.0.0)">
232          </installGroup>
233       </feature>
234    </extension>
235    <extension
236          point="org.eclipse.ui.contexts">
237       <context
238             id="org.simantics.plant3d.context"
239             name="Plant3D Context">
240       </context>
241    </extension>
242    <extension
243          point="org.simantics.ui.perspectiveContextBinding">
244       <binding
245             contextIds="org.simantics.plant3d.context"
246             perspectiveId="org.simantics.plant3d.perspective">
247       </binding>
248    </extension>
249    <extension
250          point="org.simantics.browsing.ui.common.selectionProcessorBinding">
251       <binding
252             browseContext="http://www.simantics.org/Project-1.0/ProjectBrowseContext">
253          <implementation
254                class="org.simantics.plant3d.property.P3DSelectionProcessor">
255          </implementation>
256       </binding>
257    </extension>
258
259 </plugin>