]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scenegraph.ui/plugin.xml
Fixes to allow tycho builds to work.
[simantics/platform.git] / bundles / org.simantics.scenegraph.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <?eclipse version="3.4"?>\r<!--\r
3     Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
4     in Industry THTH ry.\r
5     All rights reserved. This program and the accompanying materials\r
6     are made available under the terms of the Eclipse Public License v1.0\r
7     which accompanies this distribution, and is available at\r
8     http://www.eclipse.org/legal/epl-v10.html\r
9    \r
10     Contributors:\r
11         VTT Technical Research Centre of Finland - initial API and implementation\r
12  -->\r
13
14 <plugin>\r
15    <extension\r
16          point="org.eclipse.ui.views">\r
17       <category\r
18             id="org.simantics.scenegraph.category"\r
19             name="Scene Graph">\r
20       </category>\r
21       <!--\r
22       <view\r
23             allowMultiple="false"\r
24             category="org.simantics.scenegraph.category"\r
25             class="org.simantics.scenegraph.eclipse.FlashRemoteView"\r
26             id="org.simantics.scenegraph.view0"\r
27             name="SceneGraph Remote View for Flash"\r
28             restorable="true">\r
29       </view>\r
30       <view\r
31             allowMultiple="false"\r
32             category="org.simantics.scenegraph.category"\r
33             class="org.simantics.scenegraph.eclipse.G2DRemoteView"\r
34             id="org.simantics.scenegraph.view1"\r
35             name="SceneGraph Remote View"\r
36             restorable="true">\r
37       </view>\r
38       <view\r
39             allowMultiple="false"\r
40             category="org.simantics.scenegraph.category"\r
41             class="org.simantics.scenegraph.eclipse.G2DLocalView"\r
42             id="org.simantics.scenegraph.view2"\r
43             name="SceneGraph Local View"\r
44             restorable="true">\r
45       </view>\r
46       -->\r
47       <view\r
48             category="org.simantics.scenegraph.category"\r
49             class="org.simantics.scenegraph.ui.SceneGraphViewPart"\r
50             icon="icons/image.png"\r
51             id="org.simantics.scenegraph.viewer"\r
52             name="Scene Graph"\r
53             restorable="true">\r
54          <description>\r
55             This view part is meant for viewing the scene graph of the active workbench editor for debugging purposes.\r
56          </description>\r
57       </view>\r
58    </extension>\r
59    <extension\r
60          point="org.eclipse.ui.themes">\r
61       <themeElementCategory\r
62             id="org.simantics.scenegraph"\r
63             label="Scene Graph">\r
64       </themeElementCategory>\r
65    </extension>\r
66    <extension point="org.eclipse.core.expressions.definitions">\r
67       <definition id="org.simantics.scenegraph.viewer.active">\r
68          <with variable="activeContexts">\r
69             <iterate operator="or">\r
70                <equals value="org.simantics.scenegraph.viewer"/>\r
71             </iterate>\r
72          </with>\r
73       </definition>\r
74    </extension>\r
75    <extension\r
76          point="org.eclipse.ui.commands">\r
77       <category\r
78             id="org.simantics.scenegraph.ui"\r
79             name="Scene Graph UI Commands">\r
80       </category>\r
81       <command\r
82             categoryId="org.simantics.scenegraph.ui"\r
83             id="org.simantics.scenegraph.expandNode"\r
84             name="expandNode">\r
85       </command>\r
86       <command\r
87             categoryId="org.simantics.scenegraph.ui"\r
88             id="org.simantics.scenegraph.collapseAll"\r
89             name="collapseAll">\r
90       </command>\r
91       <command\r
92             categoryId="org.simantics.scenegraph.ui"\r
93             description="A toggle for linking the active editor selection to the current scene graph viewer selection."\r
94             id="org.simantics.scenegraph.linkToActiveWorkbenchPart"\r
95             name="linkToSelection">\r
96          <state\r
97                class="org.eclipse.jface.commands.ToggleState"\r
98                id="org.simantics.scenegraph.linkToActiveWorkbenchPart.state">\r
99          </state>\r
100       </command>\r
101    </extension>\r
102    <extension\r
103          point="org.eclipse.ui.handlers">\r
104       <handler\r
105             class="org.simantics.scenegraph.ui.RefreshHandler"\r
106             commandId="org.eclipse.ui.file.refresh">\r
107          <activeWhen>\r
108             <reference\r
109                   definitionId="org.simantics.scenegraph.viewer.active">\r
110             </reference>\r
111          </activeWhen>\r
112       </handler>\r
113       <handler\r
114             class="org.simantics.scenegraph.ui.CopyHandler"\r
115             commandId="org.eclipse.ui.edit.copy">\r
116          <activeWhen>\r
117             <reference\r
118                   definitionId="org.simantics.scenegraph.viewer.active">\r
119             </reference>\r
120          </activeWhen>\r
121       </handler>\r
122       <handler\r
123             class="org.simantics.scenegraph.ui.CollapseAllHandler"\r
124             commandId="org.simantics.scenegraph.collapseAll">\r
125       </handler>\r
126       <handler\r
127             class="org.simantics.scenegraph.ui.ExpandNodeHandler"\r
128             commandId="org.simantics.scenegraph.expandNode">\r
129       </handler>\r
130       <handler\r
131             class="org.simantics.scenegraph.ui.LinkToActiveWorkbenchPartHandler"\r
132             commandId="org.simantics.scenegraph.linkToActiveWorkbenchPart">\r
133       </handler>\r
134    </extension>\r
135    <extension\r
136          point="org.eclipse.ui.contexts">\r
137       <context\r
138             description="This context is active while the scene graph viewer is active."\r
139             id="org.simantics.scenegraph.viewer"\r
140             name="Scene Graph Viewer Context"\r
141             parentId="org.eclipse.ui.contexts.dialogAndWindow">\r
142       </context>\r
143    </extension>\r
144    <extension\r
145          point="org.eclipse.ui.menus">\r
146       <menuContribution\r
147             locationURI="toolbar:org.simantics.scenegraph.viewer">\r
148          <command\r
149                commandId="org.simantics.scenegraph.collapseAll"\r
150                icon="icons/collapseall.gif"\r
151                label="Collapse All"\r
152                style="push"\r
153                tooltip="Collapse All">\r
154          </command>\r
155          <command\r
156                commandId="org.simantics.scenegraph.expandNode"\r
157                icon="icons/expandall.gif"\r
158                label="Expand All"\r
159                style="push"\r
160                tooltip="Expand All Under Selected Node">\r
161          </command>\r
162          <command\r
163                commandId="org.eclipse.ui.file.refresh"\r
164                icon="icons/reload.png"\r
165                label="Reload"\r
166                style="push"\r
167                tooltip="Reload Scene Graph">\r
168          </command>\r
169          <command\r
170                commandId="org.simantics.scenegraph.linkToActiveWorkbenchPart"\r
171                icon="icons/synced.gif"\r
172                label="Link With Active Workbench Part"\r
173                style="toggle"\r
174                tooltip="Link With Active Workbench Part">\r
175          </command>\r
176       </menuContribution>\r
177    </extension>\r
178    <extension\r
179          point="org.eclipse.ui.bindings">\r
180       <key\r
181             commandId="org.simantics.scenegraph.collapseAll"\r
182             contextId="org.simantics.scenegraph.viewer"\r
183             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"\r
184             sequence="Ctrl+-">\r
185       </key>\r
186       <key\r
187             commandId="org.simantics.scenegraph.expandNode"\r
188             contextId="org.simantics.scenegraph.viewer"\r
189             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"\r
190             sequence="Ctrl++">\r
191       </key>\r
192    </extension>\r
193 \r
194 </plugin>\r