]> gerrit.simantics Code Review - simantics/3d.git/blob - dev/org.simantics.proconf.processeditor/plugin.xml
Release
[simantics/3d.git] / dev / org.simantics.proconf.processeditor / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <?eclipse version="3.2"?>\r
3 <plugin>\r
4    <extension\r
5          point="org.simantics.db.resourceAdapter">\r
6       <resource_adapter\r
7             adapter_class="fi.vtt.simantics.processeditor.handlers.Plant3DProjectAdapter"\r
8             operation="http://www.vtt.fi/Simantics/Layer0/1.0/Relations#HasProjectTypeAdapter"\r
9             type_uri="http://www.vtt.fi/Simantics/Plant3D/1.0/Types#Plant3DProjectType">\r
10       </resource_adapter>\r
11       <resource_adapter\r
12             adapter_class="fi.vtt.simantics.processeditor.adapters.NozzleConstraintAdapter"\r
13             operation="http://www.vtt.fi/Simantics/G3D/1.0/Relations#HasConstraints"\r
14             type_uri="http://www.vtt.fi/Simantics/Plant3D/1.0/Types#Nozzle">\r
15       </resource_adapter>\r
16       <resource_adapter\r
17             adapter_class="fi.vtt.simantics.processeditor.adapters.InlineComponentConstraintAdapter"\r
18             operation="http://www.vtt.fi/Simantics/G3D/1.0/Relations#HasConstraints"\r
19             type_uri="http://www.vtt.fi/Simantics/Plant3D/1.0/Types#InlineComponent">\r
20       </resource_adapter>\r
21       <resource_adapter\r
22             adapter_class="fi.vtt.simantics.processeditor.adapters.TurnComponentConstraintAdapter"\r
23             operation="http://www.vtt.fi/Simantics/G3D/1.0/Relations#HasConstraints"\r
24             type_uri="http://www.vtt.fi/Simantics/Plant3D/1.0/Types#TurnComponent">\r
25       </resource_adapter>\r
26    </extension>\r
27    <extension\r
28          point="org.eclipse.ui.editors">\r
29       <editor\r
30             class="fi.vtt.simantics.processeditor.views.ProcessEditorPart"\r
31             icon="icons/factory.png"\r
32             id="org.simantics.proconf.processeditor.planteditor"\r
33             name="Plant Editor">\r
34       </editor>\r
35       <editor\r
36             class="fi.vtt.simantics.processeditor.views.PipelineComponentEditorPart"\r
37             icon="icons/Component.png"\r
38             id="org.simantics.proconf.processeditor.componenteditor"\r
39             name="Component Editor">\r
40       </editor>\r
41       <editor\r
42             class="fi.vtt.simantics.processeditor.views.EquipmentEditorPart"\r
43             icon="icons/tank.png"\r
44             id="org.simantics.proconf.processeditor.equipmenteditor"\r
45             name="Equipment Editor">\r
46       </editor>\r
47    </extension>\r
48    <extension\r
49          point="org.eclipse.ui.views">\r
50       <view\r
51             class="fi.vtt.simantics.processeditor.views.PlantStructureView"\r
52             icon="icons/factory.png"\r
53             id="org.simantics.proconf.processeditor.plantstructure"\r
54             name="Plant Structure">\r
55       </view>\r
56    </extension>\r
57    <extension\r
58          point="org.eclipse.ui.commands">\r
59       <command\r
60             categoryId="org.simantics.proconf.processeditor.commands"\r
61             description="New Pipeline Component"\r
62             id="org.simantics.proconf.processeditor.commands.newComponent"\r
63             name="New Pipeline Component">\r
64       </command>\r
65       <command\r
66             categoryId="org.simantics.proconf.processeditor.commands"\r
67             description="New Equipment"\r
68             id="org.simantics.proconf.processeditor.commands.newEquipment"\r
69             name="New Equipment">\r
70       </command>\r
71       <command\r
72             categoryId="org.simantics.proconf.processeditor.commands"\r
73             description="New Plant"\r
74             id="org.simantics.proconf.processeditor.commands.newPlant"\r
75             name="New Plant">\r
76       </command>\r
77       <category\r
78             id="org.simantics.proconf.processeditor.commands"\r
79             name="Plant3D Commands">\r
80       </category>\r
81    </extension>\r
82    <extension\r
83          point="org.eclipse.ui.handlers">\r
84       <handler\r
85             class="fi.vtt.simantics.processeditor.handlers.NewPlantHandler"\r
86             commandId="org.simantics.proconf.processeditor.commands.newPlant">\r
87       </handler>\r
88       <handler\r
89             class="fi.vtt.simantics.processeditor.handlers.NewEquipmentHandler"\r
90             commandId="org.simantics.proconf.processeditor.commands.newEquipment">\r
91       </handler>\r
92       <handler\r
93             class="fi.vtt.simantics.processeditor.handlers.NewComponentHandler"\r
94             commandId="org.simantics.proconf.processeditor.commands.newComponent">\r
95       </handler>\r
96    </extension>\r
97    <extension\r
98          point="org.eclipse.ui.menus">\r
99       <menuContribution\r
100             locationURI="popup:#OEPopup?after=additions">\r
101          <command\r
102                commandId="org.simantics.proconf.processeditor.commands.newPlant"\r
103                icon="icons/factory.png"\r
104                id="org.simantics.proconf.processeditor.popups.newPlant"\r
105                label="New Plant"\r
106                style="push">\r
107             <visibleWhen>\r
108                <and>\r
109                   <with\r
110                         variable="activeContexts">\r
111                      <iterate\r
112                            ifEmpty="false"\r
113                            operator="or">\r
114                         <equals\r
115                               value="org.simantics.proconf.processeditor.plantmodelling">\r
116                         </equals>\r
117                      </iterate>\r
118                   </with>\r
119                   <with\r
120                         variable="selection">\r
121                      <and>\r
122                         <test\r
123                               args="http://www.vtt.fi/Simantics/Layer0/1.0/Types#Library"\r
124                               property="org.simantics.graph.resourceType">\r
125                         </test>\r
126                      </and>\r
127                   </with>\r
128                </and>\r
129             </visibleWhen>\r
130          </command>\r
131          <command\r
132                commandId="org.simantics.proconf.processeditor.commands.newEquipment"\r
133                icon="icons/tank.png"\r
134                id="org.simantics.proconf.processeditor.popups.newEquipment"\r
135                label="New Equipment"\r
136                style="push">\r
137             <visibleWhen>\r
138                <and>\r
139                   <with\r
140                         variable="activeContexts">\r
141                      <iterate\r
142                            ifEmpty="false"\r
143                            operator="or">\r
144                         <equals\r
145                               value="org.simantics.proconf.processeditor.plantmodelling">\r
146                         </equals>\r
147                      </iterate>\r
148                   </with>\r
149                   <with\r
150                         variable="selection">\r
151                      <and>\r
152                         <test\r
153                               args="http://www.vtt.fi/Simantics/Layer0/1.0/Types#Library"\r
154                               property="org.simantics.graph.resourceType">\r
155                         </test>\r
156                      </and>\r
157                   </with>\r
158                </and>\r
159             </visibleWhen>\r
160          </command>\r
161          <command\r
162                commandId="org.simantics.proconf.processeditor.commands.newComponent"\r
163                icon="icons/Component.png"\r
164                id="org.simantics.proconf.processeditor.popups.newComponent"\r
165                label="New  Component"\r
166                style="push">\r
167             <visibleWhen>\r
168                <and>\r
169                   <with\r
170                         variable="activeContexts">\r
171                      <iterate\r
172                            ifEmpty="false"\r
173                            operator="or">\r
174                         <equals\r
175                               value="org.simantics.proconf.processeditor.plantmodelling">\r
176                         </equals>\r
177                      </iterate>\r
178                   </with>\r
179                   <with\r
180                         variable="selection">\r
181                      <and>\r
182                         <test\r
183                               args="http://www.vtt.fi/Simantics/Layer0/1.0/Types#Library"\r
184                               property="org.simantics.graph.resourceType">\r
185                         </test>\r
186                      </and>\r
187                   </with>\r
188                </and>\r
189             </visibleWhen>\r
190          </command>\r
191       </menuContribution>\r
192    </extension>\r
193    <extension\r
194          point="org.simantics.proconf.ui.resourceEditorAdapter">\r
195       <adapterClass\r
196             class="fi.vtt.simantics.processeditor.handlers.Plant3DEditorAdapter"\r
197             id="org.simantics.proconf.processeditor.ResourceEditorDescription1">\r
198       </adapterClass>\r
199       <adapterClass\r
200             class="fi.vtt.simantics.processeditor.handlers.PipelineComponentEditorAdapter"\r
201             id="org.simantics.proconf.processeditor.ResourceEditorDescription2">\r
202       </adapterClass>\r
203       <adapterClass\r
204             class="fi.vtt.simantics.processeditor.handlers.EquipmentEditorAdapter"\r
205             id="org.simantics.proconf.processeditor.ResourceEditorDescription3">\r
206       </adapterClass>\r
207    </extension>\r
208    <extension\r
209          point="org.eclipse.ui.perspectives">\r
210       <perspective\r
211             class="fi.vtt.simantics.processeditor.perspectives.Plant3DModellingPerspective"\r
212             icon="icons/factory.png"\r
213             id="org.simantics.proconf.processeditor.plantmodelling"\r
214             name="3D Plant Modelling">\r
215       </perspective>\r
216    </extension>\r
217    <extension\r
218          point="org.eclipse.ui.perspectiveExtensions">\r
219       <perspectiveExtension\r
220             targetID="org.simantics.proconf.processeditor.plantmodelling">\r
221          <view\r
222                id="org.simantics.proconf.processeditor.plantstructure"\r
223                ratio="0.3"\r
224                relationship="left"\r
225                relative="org.eclipse.ui.editorss"\r
226                visible="true">\r
227          </view>\r
228          <view\r
229                id="org.simantics.proconf.browsing.views.property"\r
230                ratio="0.7"\r
231                relationship="bottom"\r
232                relative="org.simantics.proconf.processeditor.plantstructure"\r
233                visible="true">\r
234          </view>\r
235          <view\r
236                id="org.eclipse.pde.runtime.LogView"\r
237                relationship="fast"\r
238                relative="fi.vtt.proconf.ui.views.property"\r
239                visible="false">\r
240          </view>\r
241       </perspectiveExtension>\r
242    </extension>\r
243    <extension\r
244          point="org.simantics.proconf.g3d.geometry">\r
245       <Geometry\r
246             class="fi.vtt.simantics.processeditor.common.PipeComponentProvider"\r
247             id="org.simantics.proconf.processeditor.Geometry1">\r
248       </Geometry>\r
249    </extension>\r
250    <extension\r
251          point="org.simantics.proconf.ui.perspectiveContextBinding">\r
252       <binding\r
253             contextIds="org.simantics.proconf.processeditor.plantmodelling"\r
254             perspectiveId="org.simantics.proconf.processeditor.plantmodelling">\r
255       </binding>\r
256    </extension>\r
257    <extension\r
258          point="org.eclipse.ui.contexts">\r
259       <context\r
260             id="org.simantics.proconf.processeditor.plantmodelling"\r
261             name="Plant Modelling"\r
262             parentId="org.eclipse.ui.contexts.window">\r
263       </context>\r
264    </extension>\r
265 \r
266 </plugin>\r