--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<?eclipse version="3.4"?>\r<!--\r
+ Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ in Industry THTH ry.\r
+ All rights reserved. This program and the accompanying materials\r
+ are made available under the terms of the Eclipse Public License v1.0\r
+ which accompanies this distribution, and is available at\r
+ http://www.eclipse.org/legal/epl-v10.html\r
+ \r
+ Contributors:\r
+ VTT Technical Research Centre of Finland - initial API and implementation\r
+ -->\r
+
+<plugin>\r
+ <extension\r
+ point="org.eclipse.ui.views">\r
+ <category\r
+ id="org.simantics.scenegraph.category"\r
+ name="Scene Graph">\r
+ </category>\r
+ <!--\r
+ <view\r
+ allowMultiple="false"\r
+ category="org.simantics.scenegraph.category"\r
+ class="org.simantics.scenegraph.eclipse.FlashRemoteView"\r
+ id="org.simantics.scenegraph.view0"\r
+ name="SceneGraph Remote View for Flash"\r
+ restorable="true">\r
+ </view>\r
+ <view\r
+ allowMultiple="false"\r
+ category="org.simantics.scenegraph.category"\r
+ class="org.simantics.scenegraph.eclipse.G2DRemoteView"\r
+ id="org.simantics.scenegraph.view1"\r
+ name="SceneGraph Remote View"\r
+ restorable="true">\r
+ </view>\r
+ <view\r
+ allowMultiple="false"\r
+ category="org.simantics.scenegraph.category"\r
+ class="org.simantics.scenegraph.eclipse.G2DLocalView"\r
+ id="org.simantics.scenegraph.view2"\r
+ name="SceneGraph Local View"\r
+ restorable="true">\r
+ </view>\r
+ -->\r
+ <view\r
+ category="org.simantics.scenegraph.category"\r
+ class="org.simantics.scenegraph.ui.SceneGraphViewPart"\r
+ icon="icons/image.png"\r
+ id="org.simantics.scenegraph.viewer"\r
+ name="Scene Graph"\r
+ restorable="true">\r
+ <description>\r
+ This view part is meant for viewing the scene graph of the active workbench editor for debugging purposes.\r
+ </description>\r
+ </view>\r
+ </extension>\r
+ <extension\r
+ point="org.eclipse.ui.themes">\r
+ <themeElementCategory\r
+ id="org.simantics.scenegraph"\r
+ label="Scene Graph">\r
+ </themeElementCategory>\r
+ </extension>\r
+ <extension point="org.eclipse.core.expressions.definitions">\r
+ <definition id="org.simantics.scenegraph.viewer.active">\r
+ <with variable="activeContexts">\r
+ <iterate operator="or">\r
+ <equals value="org.simantics.scenegraph.viewer"/>\r
+ </iterate>\r
+ </with>\r
+ </definition>\r
+ </extension>\r
+ <extension\r
+ point="org.eclipse.ui.commands">\r
+ <category\r
+ id="org.simantics.scenegraph.ui"\r
+ name="Scene Graph UI Commands">\r
+ </category>\r
+ <command\r
+ categoryId="org.simantics.scenegraph.ui"\r
+ id="org.simantics.scenegraph.expandNode"\r
+ name="expandNode">\r
+ </command>\r
+ <command\r
+ categoryId="org.simantics.scenegraph.ui"\r
+ id="org.simantics.scenegraph.collapseAll"\r
+ name="collapseAll">\r
+ </command>\r
+ <command\r
+ categoryId="org.simantics.scenegraph.ui"\r
+ description="A toggle for linking the active editor selection to the current scene graph viewer selection."\r
+ id="org.simantics.scenegraph.linkToActiveWorkbenchPart"\r
+ name="linkToSelection">\r
+ <state\r
+ class="org.eclipse.jface.commands.ToggleState"\r
+ id="org.simantics.scenegraph.linkToActiveWorkbenchPart.state">\r
+ </state>\r
+ </command>\r
+ </extension>\r
+ <extension\r
+ point="org.eclipse.ui.handlers">\r
+ <handler\r
+ class="org.simantics.scenegraph.ui.RefreshHandler"\r
+ commandId="org.eclipse.ui.file.refresh">\r
+ <activeWhen>\r
+ <reference\r
+ definitionId="org.simantics.scenegraph.viewer.active">\r
+ </reference>\r
+ </activeWhen>\r
+ </handler>\r
+ <handler\r
+ class="org.simantics.scenegraph.ui.CopyHandler"\r
+ commandId="org.eclipse.ui.edit.copy">\r
+ <activeWhen>\r
+ <reference\r
+ definitionId="org.simantics.scenegraph.viewer.active">\r
+ </reference>\r
+ </activeWhen>\r
+ </handler>\r
+ <handler\r
+ class="org.simantics.scenegraph.ui.CollapseAllHandler"\r
+ commandId="org.simantics.scenegraph.collapseAll">\r
+ </handler>\r
+ <handler\r
+ class="org.simantics.scenegraph.ui.ExpandNodeHandler"\r
+ commandId="org.simantics.scenegraph.expandNode">\r
+ </handler>\r
+ <handler\r
+ class="org.simantics.scenegraph.ui.LinkToActiveWorkbenchPartHandler"\r
+ commandId="org.simantics.scenegraph.linkToActiveWorkbenchPart">\r
+ </handler>\r
+ </extension>\r
+ <extension\r
+ point="org.eclipse.ui.contexts">\r
+ <context\r
+ description="This context is active while the scene graph viewer is active."\r
+ id="org.simantics.scenegraph.viewer"\r
+ name="Scene Graph Viewer Context"\r
+ parentId="org.eclipse.ui.contexts.dialogAndWindow">\r
+ </context>\r
+ </extension>\r
+ <extension\r
+ point="org.eclipse.ui.menus">\r
+ <menuContribution\r
+ locationURI="toolbar:org.simantics.scenegraph.viewer">\r
+ <command\r
+ commandId="org.simantics.scenegraph.collapseAll"\r
+ icon="icons/collapseall.gif"\r
+ label="Collapse All"\r
+ style="push"\r
+ tooltip="Collapse All">\r
+ </command>\r
+ <command\r
+ commandId="org.simantics.scenegraph.expandNode"\r
+ icon="icons/expandall.gif"\r
+ label="Expand All"\r
+ style="push"\r
+ tooltip="Expand All Under Selected Node">\r
+ </command>\r
+ <command\r
+ commandId="org.eclipse.ui.file.refresh"\r
+ icon="icons/reload.png"\r
+ label="Reload"\r
+ style="push"\r
+ tooltip="Reload Scene Graph">\r
+ </command>\r
+ <command\r
+ commandId="org.simantics.scenegraph.linkToActiveWorkbenchPart"\r
+ icon="icons/synced.gif"\r
+ label="Link With Active Workbench Part"\r
+ style="toggle"\r
+ tooltip="Link With Active Workbench Part">\r
+ </command>\r
+ </menuContribution>\r
+ </extension>\r
+ <extension\r
+ point="org.eclipse.ui.bindings">\r
+ <key\r
+ commandId="org.simantics.scenegraph.collapseAll"\r
+ contextId="org.simantics.scenegraph.viewer"\r
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"\r
+ sequence="Ctrl+-">\r
+ </key>\r
+ <key\r
+ commandId="org.simantics.scenegraph.expandNode"\r
+ contextId="org.simantics.scenegraph.viewer"\r
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"\r
+ sequence="Ctrl++">\r
+ </key>\r
+ </extension>\r
+\r
+</plugin>\r