]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.wiki.ui/plugin.xml
Fixing wrong value types
[simantics/platform.git] / bundles / org.simantics.wiki.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>\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
16    <!--
17    <extension
18          point="org.eclipse.ui.editors">
19       <editor
20             class="org.simantics.wiki.ui.editor.WikiEditor"
21             icon="icons/table.png"
22             id="org.simantics.wiki.ui.editor"
23             name="Documentation Editor (old)">
24       </editor>
25       <editor
26             class="org.simantics.wiki.ui.editor.WikiViewer"
27             icon="icons/table.png"
28             id="org.simantics.wiki.ui.viewer"
29             name="Documentation Viewer (old)">
30       </editor>
31    </extension>
32
33    <extension
34          point="org.simantics.ui.resourceEditorAdapter">
35       <group
36             id="org.simantics.wiki.ui.editor">
37       </group>
38       <adapter
39             editorId="org.simantics.wiki.ui.editor"
40             groupId="org.simantics.wiki.ui.editor"
41             id="org.simantics.wiki.ui.editor1"
42             priority="5"
43             type_uris="http://www.simantics.org/Document-0.0/Report,http://www.simantics.org/Document-0.0/DocumentTemplate">
44       </adapter>    
45       <adapter
46             editorId="org.simantics.wiki.ui.editor"
47             groupId="org.simantics.wiki.ui.editor"
48             id="org.simantics.wiki.ui.editor2"
49             label="Wiki Document Editor"
50             priority="5"
51             type_uris="http://www.simantics.org/Document-0.0/WikiDocument">
52       </adapter> 
53       <adapter
54             editorId="org.simantics.wiki.ui.editor"
55             groupId="org.simantics.wiki.ui.editor"
56             id="org.simantics.wiki.ui.editor3"
57             priority="0"
58             type_uris="http://www.simantics.org/Layer0-0.0/Entity">
59       </adapter> 
60       <adapter
61             editorId="org.simantics.wiki.ui.viewer"
62             id="org.simantics.wiki.ui.viewer"
63             priority="0"
64             type_uris="http://www.simantics.org/Layer0-0.0/Entity">
65       </adapter>
66    </extension>
67    <extension
68          point="org.eclipse.ui.commands">
69       <command
70             defaultHandler="org.simantics.wiki.ui.editor.NewDocumentTemplateHandler"
71             description="New Document Template"
72             id="org.simantics.wiki.ui.newDocumentTemplate"
73             name="New Template">
74       </command>
75       <command
76             defaultHandler="org.simantics.wiki.ui.editor.EditDocumentTemplateHandler"
77             description="Edit Document Template"
78             id="org.simantics.wiki.ui.editDocumentTemplate"
79             name="Edit Template">
80       </command>
81       <command
82             description="Generate Report from Active Experiment"
83             id="org.simantics.wiki.ui.export.Report"
84             name="Generate Report">
85       </command>
86       <command
87             description="Back to previous wiki page in history"
88             id="org.simantics.wiki.ui.editor.back"
89             name="Back">
90       </command>
91       <command
92             description="Forward to next wiki page in history"
93             id="org.simantics.wiki.ui.editor.forward"
94             name="Forward">
95       </command>
96    </extension>
97    
98    <extension
99          point="org.eclipse.ui.handlers">
100       <handler
101             class="org.simantics.wiki.ui.editor.PasteHandler"
102             commandId="org.eclipse.ui.edit.paste">
103             <activeWhen>
104                <with
105                      variable="activeEditor">
106                   <instanceof
107                         value="org.simantics.wiki.ui.editor.WikiEditor">
108                   </instanceof>
109                </with>
110             </activeWhen>
111       </handler>
112       <handler
113             class="org.simantics.wiki.ui.export.ReportHandler"
114             commandId="org.simantics.wiki.ui.export.Report">
115          <activeWhen>
116             <with variable="selection">
117                <test property="org.simantics.wiki.isReportable" />
118             </with>
119          </activeWhen>
120       </handler>
121    </extension>
122
123    <extension
124          point="org.eclipse.ui.menus">
125       <menuContribution
126             locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
127          <toolbar
128                id="org.simantics.wiki.ui">
129             <command
130                   commandId="org.simantics.wiki.ui.editor.back"
131                   icon="icons/arrow_left.png"
132                   id="wikiback"
133                   label="Back"
134                   style="push"
135                   tooltip="Back to previous page">
136                <visibleWhen checkEnabled="false">
137                <with
138                      variable="activeEditor">
139                   <instanceof
140                         value="org.simantics.wiki.ui.editor.WikiEditor">
141                   </instanceof>
142                </with></visibleWhen>
143             </command>
144             <command
145                   commandId="org.simantics.wiki.ui.editor.forward"
146                   icon="icons/arrow_right.png"
147                   id="wikiforward"
148                   label="Forward"
149                   style="push"
150                   tooltip="Next page">
151                <visibleWhen checkEnabled="false">
152                <with
153                      variable="activeEditor">
154                   <instanceof
155                         value="org.simantics.wiki.ui.editor.WikiEditor">
156                   </instanceof>
157                </with></visibleWhen>
158             </command>
159             
160          </toolbar>
161       </menuContribution>
162       <menuContribution
163             locationURI="popup:#GraphExplorerPopup?after=new.ext">
164          <command
165                commandId="org.simantics.wiki.ui.newDocumentTemplate"
166                icon="icons/page_add.png"
167                label="New Document Template"
168                style="push">
169             <visibleWhen
170                   checkEnabled="true">
171                <with
172                      variable="selection">
173                   <and>
174                      <test
175                            args="org.simantics.modeling.ui.modelBrowser.model.Node"
176                            property="org.simantics.modeling.ui.nodeClass">
177                      </test>
178                   </and>
179                </with>
180             </visibleWhen>
181          </command>
182          <command
183                commandId="org.simantics.wiki.ui.editDocumentTemplate"
184                icon="icons/page_edit.png"
185                label="Edit Document Template"
186                style="push">
187             <visibleWhen
188                   checkEnabled="true">
189                <with
190                      variable="selection">
191                   <and>
192                      <test
193                            args="org.simantics.modeling.ui.modelBrowser.model.Node"
194                            property="org.simantics.modeling.ui.nodeClass">
195                      </test>
196                   </and>
197                </with>
198             </visibleWhen>
199          </command>
200        </menuContribution>
201        <menuContribution locationURI="popup:#GraphExplorerPopup?after=modelling.ext">
202          <command
203                commandId="org.simantics.wiki.ui.export.Report"
204                icon="icons/export.gif"
205                label="Generate Report"
206                style="push">
207             <visibleWhen
208                   checkEnabled="true">
209             </visibleWhen>
210          </command>
211       </menuContribution>
212    </extension>
213    -->
214 <!-- Doesn't work, wiki content cannot be exported in headless mode   
215    <extension
216          point="org.eclipse.ui.exportWizards">
217       <category
218             id="org.simantics.wiki.ui.category.documentation"
219             name="Documentation">
220       </category>
221       <wizard
222             category="org.simantics.wiki.ui.category.documentation"
223             class="org.simantics.wiki.ui.export.FullPDFExport"
224             icon="icons/export.gif"
225             id="org.simantics.wiki.ui.fullPDFExport"
226             name="Documentation hierarchy in PDF">
227       </wizard>
228    </extension>
229    <extension
230          point="org.eclipse.core.expressions.propertyTesters">
231       <propertyTester
232             class="org.simantics.wiki.ui.tester.ReportPropertyTester"
233             id="org.simantics.wiki.reportPropertyTester"
234             namespace="org.simantics.wiki"
235             properties="isReportable"
236             type="java.lang.Object">
237       </propertyTester>
238    </extension>
239    -->
240
241    <extension
242          point="org.eclipse.ui.themes">
243       <themeElementCategory
244             id="org.simantics.wiki.ui"
245             label="Wiki System">
246       </themeElementCategory>
247       <fontDefinition
248             categoryId="org.simantics.wiki.ui"
249             id="org.simantics.wiki.sourcefont"
250             label="Wiki Source Font"
251             value="Tahoma-10-regular">
252       </fontDefinition>
253    </extension>
254
255 </plugin>