1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <?eclipse version="3.2"?>
\r<!--
\r
3 Copyright (c) 2007, 2010 Association for Decentralized Information Management
\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
11 VTT Technical Research Centre of Finland - initial API and implementation
\r
18 point="org.eclipse.ui.editors">
\r
20 class="org.simantics.wiki.ui.editor.WikiEditor"
\r
21 icon="icons/table.png"
\r
22 id="org.simantics.wiki.ui.editor"
\r
23 name="Documentation Editor (old)">
\r
26 class="org.simantics.wiki.ui.editor.WikiViewer"
\r
27 icon="icons/table.png"
\r
28 id="org.simantics.wiki.ui.viewer"
\r
29 name="Documentation Viewer (old)">
\r
34 point="org.simantics.ui.resourceEditorAdapter">
\r
36 id="org.simantics.wiki.ui.editor">
\r
39 editorId="org.simantics.wiki.ui.editor"
\r
40 groupId="org.simantics.wiki.ui.editor"
\r
41 id="org.simantics.wiki.ui.editor1"
\r
43 type_uris="http://www.simantics.org/Document-0.0/Report,http://www.simantics.org/Document-0.0/DocumentTemplate">
\r
46 editorId="org.simantics.wiki.ui.editor"
\r
47 groupId="org.simantics.wiki.ui.editor"
\r
48 id="org.simantics.wiki.ui.editor2"
\r
49 label="Wiki Document Editor"
\r
51 type_uris="http://www.simantics.org/Document-0.0/WikiDocument">
\r
54 editorId="org.simantics.wiki.ui.editor"
\r
55 groupId="org.simantics.wiki.ui.editor"
\r
56 id="org.simantics.wiki.ui.editor3"
\r
58 type_uris="http://www.simantics.org/Layer0-0.0/Entity">
\r
61 editorId="org.simantics.wiki.ui.viewer"
\r
62 id="org.simantics.wiki.ui.viewer"
\r
64 type_uris="http://www.simantics.org/Layer0-0.0/Entity">
\r
68 point="org.eclipse.ui.commands">
\r
70 defaultHandler="org.simantics.wiki.ui.editor.NewDocumentTemplateHandler"
\r
71 description="New Document Template"
\r
72 id="org.simantics.wiki.ui.newDocumentTemplate"
\r
73 name="New Template">
\r
76 defaultHandler="org.simantics.wiki.ui.editor.EditDocumentTemplateHandler"
\r
77 description="Edit Document Template"
\r
78 id="org.simantics.wiki.ui.editDocumentTemplate"
\r
79 name="Edit Template">
\r
82 description="Generate Report from Active Experiment"
\r
83 id="org.simantics.wiki.ui.export.Report"
\r
84 name="Generate Report">
\r
87 description="Back to previous wiki page in history"
\r
88 id="org.simantics.wiki.ui.editor.back"
\r
92 description="Forward to next wiki page in history"
\r
93 id="org.simantics.wiki.ui.editor.forward"
\r
99 point="org.eclipse.ui.handlers">
\r
101 class="org.simantics.wiki.ui.editor.PasteHandler"
\r
102 commandId="org.eclipse.ui.edit.paste">
\r
105 variable="activeEditor">
\r
107 value="org.simantics.wiki.ui.editor.WikiEditor">
\r
113 class="org.simantics.wiki.ui.export.ReportHandler"
\r
114 commandId="org.simantics.wiki.ui.export.Report">
\r
116 <with variable="selection">
\r
117 <test property="org.simantics.wiki.isReportable" />
\r
124 point="org.eclipse.ui.menus">
\r
126 locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
\r
128 id="org.simantics.wiki.ui">
\r
130 commandId="org.simantics.wiki.ui.editor.back"
\r
131 icon="icons/arrow_left.png"
\r
135 tooltip="Back to previous page">
\r
136 <visibleWhen checkEnabled="false">
\r
138 variable="activeEditor">
\r
140 value="org.simantics.wiki.ui.editor.WikiEditor">
\r
142 </with></visibleWhen>
\r
145 commandId="org.simantics.wiki.ui.editor.forward"
\r
146 icon="icons/arrow_right.png"
\r
150 tooltip="Next page">
\r
151 <visibleWhen checkEnabled="false">
\r
153 variable="activeEditor">
\r
155 value="org.simantics.wiki.ui.editor.WikiEditor">
\r
157 </with></visibleWhen>
\r
163 locationURI="popup:#GraphExplorerPopup?after=new.ext">
\r
165 commandId="org.simantics.wiki.ui.newDocumentTemplate"
\r
166 icon="icons/page_add.png"
\r
167 label="New Document Template"
\r
170 checkEnabled="true">
\r
172 variable="selection">
\r
175 args="org.simantics.modeling.ui.modelBrowser.model.Node"
\r
176 property="org.simantics.modeling.ui.nodeClass">
\r
183 commandId="org.simantics.wiki.ui.editDocumentTemplate"
\r
184 icon="icons/page_edit.png"
\r
185 label="Edit Document Template"
\r
188 checkEnabled="true">
\r
190 variable="selection">
\r
193 args="org.simantics.modeling.ui.modelBrowser.model.Node"
\r
194 property="org.simantics.modeling.ui.nodeClass">
\r
200 </menuContribution>
\r
201 <menuContribution locationURI="popup:#GraphExplorerPopup?after=modelling.ext">
\r
203 commandId="org.simantics.wiki.ui.export.Report"
\r
204 icon="icons/export.gif"
\r
205 label="Generate Report"
\r
208 checkEnabled="true">
\r
211 </menuContribution>
\r
214 <!-- Doesn't work, wiki content cannot be exported in headless mode
\r
216 point="org.eclipse.ui.exportWizards">
\r
218 id="org.simantics.wiki.ui.category.documentation"
\r
219 name="Documentation">
\r
222 category="org.simantics.wiki.ui.category.documentation"
\r
223 class="org.simantics.wiki.ui.export.FullPDFExport"
\r
224 icon="icons/export.gif"
\r
225 id="org.simantics.wiki.ui.fullPDFExport"
\r
226 name="Documentation hierarchy in PDF">
\r
230 point="org.eclipse.core.expressions.propertyTesters">
\r
232 class="org.simantics.wiki.ui.tester.ReportPropertyTester"
\r
233 id="org.simantics.wiki.reportPropertyTester"
\r
234 namespace="org.simantics.wiki"
\r
235 properties="isReportable"
\r
236 type="java.lang.Object">
\r
242 point="org.eclipse.ui.themes">
\r
243 <themeElementCategory
\r
244 id="org.simantics.wiki.ui"
\r
245 label="Wiki System">
\r
246 </themeElementCategory>
\r
248 categoryId="org.simantics.wiki.ui"
\r
249 id="org.simantics.wiki.sourcefont"
\r
250 label="Wiki Source Font"
\r
251 value="Tahoma-10-regular">
\r