]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.plant3d/plugin.xml
Set correct transformation for vtk objects when they are created
[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.menus">
26       <menuContribution
27             allPopups="false"
28             locationURI="toolbar:org.eclipse.ui.main.toolbar">
29          <toolbar
30                id="org.simantics.plant3d.toolbar">
31             <separator
32                   name="view"
33                   visible="true">
34             </separator>
35             <command
36                   commandId="org.simantics.g3d.parallelperspective"
37                   icon="platform:/plugin/com.famfamfam.silk/icons/image.png"
38                   label="Parallel perspective"
39                   style="toggle">
40             </command>
41             <command
42                   commandId="org.simantics.g3d.viewdir"
43                   icon="icons/x-axis.png"
44                   label="View X+"
45                   style="push">
46                <parameter
47                      name="org.simantics.g3d.viewDirection"
48                      value="1,0,0">
49                </parameter>
50             </command>
51             <command
52                   commandId="org.simantics.g3d.viewdir"
53                   icon="icons/x-axis.png"
54                   label="View X-"
55                   style="push">
56                <parameter
57                      name="org.simantics.g3d.viewDirection"
58                      value="-1,0,0">
59                </parameter>
60             </command>
61             <command
62                   commandId="org.simantics.g3d.viewdir"
63                   icon="icons/y-axis.png"
64                   label="View Y+"
65                   style="push">
66                <parameter
67                      name="org.simantics.g3d.viewDirection"
68                      value="0,1,0">
69                </parameter>
70             </command>
71             <command
72                   commandId="org.simantics.g3d.viewdir"
73                   icon="icons/y-axis.png"
74                   label="View Y-"
75                   style="push">
76                <parameter
77                      name="org.simantics.g3d.viewDirection"
78                      value="0,-1,0">
79                </parameter>
80             </command>
81             <command
82                   commandId="org.simantics.g3d.viewdir"
83                   icon="icons/z-axis.png"
84                   label="View Z+"
85                   style="push">
86                <parameter
87                      name="org.simantics.g3d.viewDirection"
88                      value="0,0,1">
89                </parameter>
90             </command>
91             <command
92                   commandId="org.simantics.g3d.viewdir"
93                   icon="icons/z-axis.png"
94                   label="View Z-"
95                   style="push">
96                <parameter
97                      name="org.simantics.g3d.viewDirection"
98                      value="0,0,-1">
99                </parameter>
100             </command>
101          </toolbar>
102       </menuContribution>
103    </extension>
104    <extension
105          point="org.eclipse.ui.commands">
106       <category
107             id="org.simantics.plant3d.category"
108             name="Plant3D commands">
109       </category>
110       <command
111             categoryId="org.simantics.plant3d.category"
112             id="org.simantics.plant3d.newPlant"
113             name="New Plant">
114       </command>
115       <command
116             categoryId="org.simantics.plant3d.category"
117             id="org.simantics.plant3d.newCSGModel"
118             name="New CSG Model">
119       </command>
120    </extension>
121    <extension
122          point="org.eclipse.ui.handlers">
123       <handler
124             class="org.simantics.plant3d.handlers.NewPlantHandler"
125             commandId="org.simantics.plant3d.newPlant">
126       </handler>
127       <handler
128             class="org.simantics.g3d.vtk.handlers.ParallelPerspectiveHandler"
129             commandId="org.simantics.g3d.parallelperspective">
130          <activeWhen>
131             <with
132                   variable="activeEditor">
133                <and>
134                   <instanceof
135                         value="org.simantics.plant3d.editor.Plant3DEditor">
136                   </instanceof>
137                </and>
138             </with>
139          </activeWhen>
140       </handler>
141       <handler
142             class="org.simantics.g3d.vtk.handlers.CameraPositionHandler"
143             commandId="org.simantics.g3d.viewdir">
144          <activeWhen>
145             <with
146                   variable="activeEditor">
147                <and>
148                   <instanceof
149                         value="org.simantics.plant3d.editor.Plant3DEditor">
150                   </instanceof>
151                </and>
152             </with>
153          </activeWhen>
154       </handler>
155       <handler
156             class="org.simantics.g3d.csg.handler.NewCSGModelHandler"
157             commandId="org.simantics.plant3d.newCSGModel">
158       </handler>
159    </extension>
160    <extension
161          point="org.eclipse.ui.contexts">
162       <context
163             id="org.simantics.plant3d.context"
164             name="Plant3D Context">
165       </context>
166    </extension>
167    <extension
168          point="org.simantics.browsing.ui.common.selectionProcessorBinding">
169       <binding
170             browseContext="http://www.simantics.org/Project-1.0/ProjectBrowseContext">
171          <implementation
172                class="org.simantics.plant3d.property.P3DSelectionProcessor">
173          </implementation>
174       </binding>
175    </extension>
176 </plugin>