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