]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - dev/org.simantics.proconf.processeditor/plugin.xml
latest release (0.41)
[simantics/3d.git] / dev / org.simantics.proconf.processeditor / plugin.xml
diff --git a/dev/org.simantics.proconf.processeditor/plugin.xml b/dev/org.simantics.proconf.processeditor/plugin.xml
new file mode 100644 (file)
index 0000000..3350141
--- /dev/null
@@ -0,0 +1,266 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<?eclipse version="3.2"?>\r
+<plugin>\r
+   <extension\r
+         point="org.simantics.db.resourceAdapter">\r
+      <resource_adapter\r
+            adapter_class="fi.vtt.simantics.processeditor.handlers.Plant3DProjectAdapter"\r
+            operation="http://www.vtt.fi/Simantics/Layer0/1.0/Relations#HasProjectTypeAdapter"\r
+            type_uri="http://www.vtt.fi/Simantics/Plant3D/1.0/Types#Plant3DProjectType">\r
+      </resource_adapter>\r
+      <resource_adapter\r
+            adapter_class="fi.vtt.simantics.processeditor.adapters.NozzleConstraintAdapter"\r
+            operation="http://www.vtt.fi/Simantics/G3D/1.0/Relations#HasConstraints"\r
+            type_uri="http://www.vtt.fi/Simantics/Plant3D/1.0/Types#Nozzle">\r
+      </resource_adapter>\r
+      <resource_adapter\r
+            adapter_class="fi.vtt.simantics.processeditor.adapters.InlineComponentConstraintAdapter"\r
+            operation="http://www.vtt.fi/Simantics/G3D/1.0/Relations#HasConstraints"\r
+            type_uri="http://www.vtt.fi/Simantics/Plant3D/1.0/Types#InlineComponent">\r
+      </resource_adapter>\r
+      <resource_adapter\r
+            adapter_class="fi.vtt.simantics.processeditor.adapters.TurnComponentConstraintAdapter"\r
+            operation="http://www.vtt.fi/Simantics/G3D/1.0/Relations#HasConstraints"\r
+            type_uri="http://www.vtt.fi/Simantics/Plant3D/1.0/Types#TurnComponent">\r
+      </resource_adapter>\r
+   </extension>\r
+   <extension\r
+         point="org.eclipse.ui.editors">\r
+      <editor\r
+            class="fi.vtt.simantics.processeditor.views.ProcessEditorPart"\r
+            icon="icons/factory.png"\r
+            id="org.simantics.proconf.processeditor.planteditor"\r
+            name="Plant Editor">\r
+      </editor>\r
+      <editor\r
+            class="fi.vtt.simantics.processeditor.views.PipelineComponentEditorPart"\r
+            icon="icons/Component.png"\r
+            id="org.simantics.proconf.processeditor.componenteditor"\r
+            name="Component Editor">\r
+      </editor>\r
+      <editor\r
+            class="fi.vtt.simantics.processeditor.views.EquipmentEditorPart"\r
+            icon="icons/tank.png"\r
+            id="org.simantics.proconf.processeditor.equipmenteditor"\r
+            name="Equipment Editor">\r
+      </editor>\r
+   </extension>\r
+   <extension\r
+         point="org.eclipse.ui.views">\r
+      <view\r
+            class="fi.vtt.simantics.processeditor.views.PlantStructureView"\r
+            icon="icons/factory.png"\r
+            id="org.simantics.proconf.processeditor.plantstructure"\r
+            name="Plant Structure">\r
+      </view>\r
+   </extension>\r
+   <extension\r
+         point="org.eclipse.ui.commands">\r
+      <command\r
+            categoryId="org.simantics.proconf.processeditor.commands"\r
+            description="New Pipeline Component"\r
+            id="org.simantics.proconf.processeditor.commands.newComponent"\r
+            name="New Pipeline Component">\r
+      </command>\r
+      <command\r
+            categoryId="org.simantics.proconf.processeditor.commands"\r
+            description="New Equipment"\r
+            id="org.simantics.proconf.processeditor.commands.newEquipment"\r
+            name="New Equipment">\r
+      </command>\r
+      <command\r
+            categoryId="org.simantics.proconf.processeditor.commands"\r
+            description="New Plant"\r
+            id="org.simantics.proconf.processeditor.commands.newPlant"\r
+            name="New Plant">\r
+      </command>\r
+      <category\r
+            id="org.simantics.proconf.processeditor.commands"\r
+            name="Plant3D Commands">\r
+      </category>\r
+   </extension>\r
+   <extension\r
+         point="org.eclipse.ui.handlers">\r
+      <handler\r
+            class="fi.vtt.simantics.processeditor.handlers.NewPlantHandler"\r
+            commandId="org.simantics.proconf.processeditor.commands.newPlant">\r
+      </handler>\r
+      <handler\r
+            class="fi.vtt.simantics.processeditor.handlers.NewEquipmentHandler"\r
+            commandId="org.simantics.proconf.processeditor.commands.newEquipment">\r
+      </handler>\r
+      <handler\r
+            class="fi.vtt.simantics.processeditor.handlers.NewComponentHandler"\r
+            commandId="org.simantics.proconf.processeditor.commands.newComponent">\r
+      </handler>\r
+   </extension>\r
+   <extension\r
+         point="org.eclipse.ui.menus">\r
+      <menuContribution\r
+            locationURI="popup:#OEPopup?after=additions">\r
+         <command\r
+               commandId="org.simantics.proconf.processeditor.commands.newPlant"\r
+               icon="icons/factory.png"\r
+               id="org.simantics.proconf.processeditor.popups.newPlant"\r
+               label="New Plant"\r
+               style="push">\r
+            <visibleWhen>\r
+               <and>\r
+                  <with\r
+                        variable="activeContexts">\r
+                     <iterate\r
+                           ifEmpty="false"\r
+                           operator="or">\r
+                        <equals\r
+                              value="org.simantics.proconf.processeditor.plantmodelling">\r
+                        </equals>\r
+                     </iterate>\r
+                  </with>\r
+                  <with\r
+                        variable="selection">\r
+                     <and>\r
+                        <test\r
+                              args="http://www.vtt.fi/Simantics/Layer0/1.0/Types#Library"\r
+                              property="org.simantics.graph.resourceType">\r
+                        </test>\r
+                     </and>\r
+                  </with>\r
+               </and>\r
+            </visibleWhen>\r
+         </command>\r
+         <command\r
+               commandId="org.simantics.proconf.processeditor.commands.newEquipment"\r
+               icon="icons/tank.png"\r
+               id="org.simantics.proconf.processeditor.popups.newEquipment"\r
+               label="New Equipment"\r
+               style="push">\r
+            <visibleWhen>\r
+               <and>\r
+                  <with\r
+                        variable="activeContexts">\r
+                     <iterate\r
+                           ifEmpty="false"\r
+                           operator="or">\r
+                        <equals\r
+                              value="org.simantics.proconf.processeditor.plantmodelling">\r
+                        </equals>\r
+                     </iterate>\r
+                  </with>\r
+                  <with\r
+                        variable="selection">\r
+                     <and>\r
+                        <test\r
+                              args="http://www.vtt.fi/Simantics/Layer0/1.0/Types#Library"\r
+                              property="org.simantics.graph.resourceType">\r
+                        </test>\r
+                     </and>\r
+                  </with>\r
+               </and>\r
+            </visibleWhen>\r
+         </command>\r
+         <command\r
+               commandId="org.simantics.proconf.processeditor.commands.newComponent"\r
+               icon="icons/Component.png"\r
+               id="org.simantics.proconf.processeditor.popups.newComponent"\r
+               label="New  Component"\r
+               style="push">\r
+            <visibleWhen>\r
+               <and>\r
+                  <with\r
+                        variable="activeContexts">\r
+                     <iterate\r
+                           ifEmpty="false"\r
+                           operator="or">\r
+                        <equals\r
+                              value="org.simantics.proconf.processeditor.plantmodelling">\r
+                        </equals>\r
+                     </iterate>\r
+                  </with>\r
+                  <with\r
+                        variable="selection">\r
+                     <and>\r
+                        <test\r
+                              args="http://www.vtt.fi/Simantics/Layer0/1.0/Types#Library"\r
+                              property="org.simantics.graph.resourceType">\r
+                        </test>\r
+                     </and>\r
+                  </with>\r
+               </and>\r
+            </visibleWhen>\r
+         </command>\r
+      </menuContribution>\r
+   </extension>\r
+   <extension\r
+         point="org.simantics.proconf.ui.resourceEditorAdapter">\r
+      <adapterClass\r
+            class="fi.vtt.simantics.processeditor.handlers.Plant3DEditorAdapter"\r
+            id="org.simantics.proconf.processeditor.ResourceEditorDescription1">\r
+      </adapterClass>\r
+      <adapterClass\r
+            class="fi.vtt.simantics.processeditor.handlers.PipelineComponentEditorAdapter"\r
+            id="org.simantics.proconf.processeditor.ResourceEditorDescription2">\r
+      </adapterClass>\r
+      <adapterClass\r
+            class="fi.vtt.simantics.processeditor.handlers.EquipmentEditorAdapter"\r
+            id="org.simantics.proconf.processeditor.ResourceEditorDescription3">\r
+      </adapterClass>\r
+   </extension>\r
+   <extension\r
+         point="org.eclipse.ui.perspectives">\r
+      <perspective\r
+            class="fi.vtt.simantics.processeditor.perspectives.Plant3DModellingPerspective"\r
+            icon="icons/factory.png"\r
+            id="org.simantics.proconf.processeditor.plantmodelling"\r
+            name="3D Plant Modelling">\r
+      </perspective>\r
+   </extension>\r
+   <extension\r
+         point="org.eclipse.ui.perspectiveExtensions">\r
+      <perspectiveExtension\r
+            targetID="org.simantics.proconf.processeditor.plantmodelling">\r
+         <view\r
+               id="org.simantics.proconf.processeditor.plantstructure"\r
+               ratio="0.3"\r
+               relationship="left"\r
+               relative="org.eclipse.ui.editorss"\r
+               visible="true">\r
+         </view>\r
+         <view\r
+               id="org.simantics.proconf.browsing.views.property"\r
+               ratio="0.7"\r
+               relationship="bottom"\r
+               relative="org.simantics.proconf.processeditor.plantstructure"\r
+               visible="true">\r
+         </view>\r
+         <view\r
+               id="org.eclipse.pde.runtime.LogView"\r
+               relationship="fast"\r
+               relative="fi.vtt.proconf.ui.views.property"\r
+               visible="false">\r
+         </view>\r
+      </perspectiveExtension>\r
+   </extension>\r
+   <extension\r
+         point="org.simantics.proconf.g3d.geometry">\r
+      <Geometry\r
+            class="fi.vtt.simantics.processeditor.common.PipeComponentProvider"\r
+            id="org.simantics.proconf.processeditor.Geometry1">\r
+      </Geometry>\r
+   </extension>\r
+   <extension\r
+         point="org.simantics.proconf.ui.perspectiveContextBinding">\r
+      <binding\r
+            contextIds="org.simantics.proconf.processeditor.plantmodelling"\r
+            perspectiveId="org.simantics.proconf.processeditor.plantmodelling">\r
+      </binding>\r
+   </extension>\r
+   <extension\r
+         point="org.eclipse.ui.contexts">\r
+      <context\r
+            id="org.simantics.proconf.processeditor.plantmodelling"\r
+            name="Plant Modelling"\r
+            parentId="org.eclipse.ui.contexts.window">\r
+      </context>\r
+   </extension>\r
+\r
+</plugin>\r