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