]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/plugin.xml
Editor internal toolbar for Plant3D editor
[simantics/3d.git] / org.simantics.g3d / plugin.xml
index 034ac76faf0fc29598918b00f4583662ddf57403..b93b3db8ee015bfff59450a2e1418197af94f854 100644 (file)
@@ -1,55 +1,78 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<?eclipse version="3.2"?>\r
-<plugin>\r
-   <extension-point id="geometry" name="Geometry" schema="schema/geometry.exsd"/>\r
-   <extension-point id="appearance" name="Appearance" schema="schema/appearance.exsd"/>\r
-   <extension\r
-         point="org.eclipse.ui.preferencePages">\r
-      <page\r
-            category="org.simantics.proconf.preferences"\r
-            class="org.simantics.proconf.g3d.preferences.G3DPreferencesPage"\r
-            id="fi.vtt.simantics.g3d.page1"\r
-            name="3D Preferences">\r
-      </page>\r
-   </extension>\r
-   <extension\r
-         point="org.eclipse.core.runtime.preferences">\r
-      <initializer\r
-            class="org.simantics.proconf.g3d.preferences.PreferenceInitializer">\r
-      </initializer>\r
-   </extension>\r
-   <extension\r
-         point="org.eclipse.ui.views">\r
-      <view\r
-            allowMultiple="false"\r
-            class="org.simantics.proconf.g3d.views.ScenegraphViewPart"\r
-            icon="icons/geometry.png"\r
-            id="org.simantics.g3d.views.scenegraph"\r
-            name="Scene-graph">\r
-      </view>\r
-      <view\r
-            allowMultiple="false"\r
-            class="org.simantics.proconf.g3d.views.AppearanceEditor"\r
-            icon="icons/geometry.png"\r
-            id="org.simantics.proconf.g3d.view1"\r
-            name="Appearance Editor">\r
-      </view>\r
-   </extension>\r
-   <extension\r
-         point="org.eclipse.core.expressions.propertyTesters">\r
-      <propertyTester\r
-            class="org.simantics.proconf.g3d.common.PropertyTester2"\r
-            id="org.simantics.proconf.editorToolTester"\r
-            namespace="org.simantics.proconf"\r
-            properties="editorTool"\r
-            type="org.eclipse.jface.viewers.IStructuredSelection">\r
-      </propertyTester>\r
-   </extension>\r
-   <extension\r
-         point="org.simantics.proconf.g3d.appearance">\r
-      <Appearance\r
-            class="org.simantics.proconf.g3d.base.DefaultAppearanceProvider"\r
-            id="org.simantics.proconf.g3d.Appearance1">\r
-      </Appearance>\r
-   </extension>\r
-</plugin>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>\r<!--
+    Copyright (c) 2012, 2013 Association for Decentralized Information Management in
+    Industry THTH ry.
+    All rights reserved. This program and the accompanying materials
+    are made available under the terms of the Eclipse Public License v1.0
+    which accompanies this distribution, and is available at
+    http://www.eclipse.org/legal/epl-v10.html
+   
+    Contributors:
+        VTT Technical Research Centre of Finland - initial API and implementation
+ -->
+
+<plugin>
+   <extension
+         point="org.eclipse.ui.views">
+      <view
+            allowMultiple="false"
+            category="org.simantics.debug.ui"
+            class="org.simantics.g3d.ui.SceneGraphDebugger"
+            icon="platform:/plugin/com.famfamfam.silk/icons/car.png"
+            id="org.simantics.g3d.debug"
+            name="Scene-graph Debugger"
+            restorable="true">
+      </view>
+   </extension>
+   <extension
+         point="org.eclipse.ui.preferencePages">
+      <page
+            class="org.simantics.g3d.preferences.G3DPreferencePage"
+            id="org.simantics.g3d.preferences.G3DPreferencePage"
+            name="3D Modelling Preferences">
+      </page>
+   </extension>
+   <extension
+         point="org.eclipse.core.runtime.preferences">
+      <initializer
+            class="org.simantics.g3d.preferences.PreferenceInitializer">
+      </initializer>
+   </extension>
+   <extension
+         point="org.eclipse.ui.commands">
+      <category
+            id="org.simantics.g3d.category"
+            name="3D Modelling Commands">
+      </category>
+      <command
+            categoryId="org.simantics.g3d.category"
+            id="org.simantics.g3d.parallelperspective"
+            name="Parallel perspective">
+         <state
+               id="org.eclipse.ui.commands.toggleState">
+            <class
+                  class="org.eclipse.ui.handlers.RegistryToggleState">
+               <parameter
+                     name="persisted"
+                     value="false">
+               </parameter>
+               <parameter
+                     name="default"
+                     value="false">
+               </parameter>
+            </class>
+         </state>
+      </command>
+      <command
+            categoryId="org.simantics.g3d.category"
+            id="org.simantics.g3d.viewdir"
+            name="View Direction">
+         <commandParameter
+               id="org.simantics.g3d.viewDirection"
+               name="direction"
+               optional="true">
+         </commandParameter>
+      </command>
+   </extension>
+
+</plugin>