Implemeted action for uploading Wikipedia articles (thanks to D.Wunsch)
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.0"?>
3 <plugin
4    id="net.sourceforge.phpeclipse.wiki"
5    name="Wikipedia Editor Plug-in"
6    version="1.1.2"
7    provider-name="www.phpeclipse.de"
8    class="net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin">
9
10    <runtime>
11       <library name="wiki.jar">
12         <export name="*"/>
13       </library>
14       <library name="lib/xmlrpc-1.1.jar"/>
15       <library name="lib/radeox.jar"/>
16       <library name="lib/commons-logging.jar"/>
17       <library name="lib/commons-httpclient-2.0.2.jar"/>
18       <library name="lib/plog4u.jar"/>
19       <library name="lib/velocity-dep-1.4.jar"/>
20       <library name="lib/mysql-connector.jar"/>
21    </runtime>
22    <requires>
23       <import plugin="org.eclipse.core.runtime.compatibility"/>
24       <import plugin="org.eclipse.ui.ide"/>
25       <import plugin="org.eclipse.core.resources"/>
26       <import plugin="org.eclipse.ui"/>
27       <import plugin="org.eclipse.swt"/>
28       <import plugin="org.eclipse.ui.forms"/>
29       <import plugin="org.eclipse.ui.views"/>
30       <import plugin="org.eclipse.core.runtime"/>
31       <import plugin="org.eclipse.jface.text"/>
32       <import plugin="org.eclipse.ui"/>
33       <import plugin="org.eclipse.ui.views"/>
34       <import plugin="org.eclipse.ui.editors"/>
35       <import plugin="org.eclipse.ui.workbench.texteditor"/>
36       <import plugin="net.sourceforge.phpeclipse.webbrowser"/>
37    </requires>
38    
39    <extension
40          point="org.eclipse.ui.editors">
41       <editor
42             icon="icons/text.gif"
43             class="net.sourceforge.phpeclipse.wiki.editor.WikiEditor"
44             default="true"
45             contributorClass="net.sourceforge.phpeclipse.wiki.editor.WikiEditorContributor"
46             name="WikiEditor"
47             id="net.sourceforge.phpeclipse.wiki.editor"
48             extensions="wp"/>
49    </extension>
50    <extension
51          point="org.eclipse.ui.editors.templates">
52       <contextType
53             class="org.eclipse.jface.text.templates.TemplateContextType"
54             name="Wikipedia Templates"
55             id="net.sourceforge.phpeclipse.wiki.editor.templates"/>
56       <include file="templates/templates.xml"/>
57    </extension>
58
59    <extension
60          point="org.eclipse.ui.editors.markerAnnotationSpecification">
61       <specification
62             annotationType="net.sourceforge.phpeclipse.wiki.editor.highlightannotation"
63             verticalRulerPreferenceKey="highlight.rulers.vertical"
64             textPreferenceKey="highlight.text"
65             colorPreferenceKey="highlight.color"
66             highlightPreferenceKey="highlight.background"
67             textPreferenceValue="false"
68             textStylePreferenceValue="UNDERLINE"
69             overviewRulerPreferenceKey="highlight.rulers.overview"
70             presentationLayer="4"
71             highlightPreferenceValue="true"
72             label="Zutaten"
73             icon="icons/occurrence.gif"
74             colorPreferenceValue="253,255,157"
75             verticalRulerPreferenceValue="true"
76             overviewRulerPreferenceValue="true"
77             textStylePreferenceKey="highlight.text.style">
78       </specification>
79    </extension>
80
81    <!-- linked annotations -->
82    <extension
83          point="org.eclipse.ui.editors.markerAnnotationSpecification">
84           <specification
85             annotationType="org.eclipse.jdt.ui.link.master"
86             colorPreferenceValue="70,100,165"
87             colorPreferenceKey="linked.focus.color"
88             isGoToPreviousNavigationTarget="false"
89             isGoToPreviousNavigationTargetKey="linked.focus.navigation.previous"
90             showInNextPrevDropdownToolbarAction="false"
91             showInNextPrevDropdownToolbarActionKey="linked.focus.navigation.dropdown"
92             isGoToNextNavigationTarget="false"
93             isGoToNextNavigationTargetKey="linked.focus.navigation.next"
94             contributesToHeader="false"
95             overviewRulerPreferenceValue="false"
96             presentationLayer="4"
97             label="Linked Position (Focus)"
98             textPreferenceValue="true"
99             textPreferenceKey="linked.focus.text"
100             highlightPreferenceKey="linked.focus.highlight"
101             highlightPreferenceValue="false"
102             textStylePreferenceKey="linked.focus.text.style"
103             textStylePreferenceValue="BOX"
104             verticalRulerPreferenceKey="linked.focus.verticalruler"
105             verticalRulerPreferenceValue="false"
106             overviewRulerPreferenceKey="linked.focus.overviewruler">
107       </specification>      
108       <specification
109             annotationType="org.eclipse.jdt.ui.link.slave"
110             colorPreferenceValue="180,215,255"
111             colorPreferenceKey="linked.slave.color"
112             isGoToPreviousNavigationTarget="false"
113             isGoToPreviousNavigationTargetKey="linked.slave.navigation.previous"
114             showInNextPrevDropdownToolbarAction="false"
115             showInNextPrevDropdownToolbarActionKey="linked.slave.navigation.dropdown"
116             isGoToNextNavigationTarget="false"
117             isGoToNextNavigationTargetKey="linked.slave.navigation.next"
118             contributesToHeader="false"
119             overviewRulerPreferenceValue="false"
120             presentationLayer="4"
121             label="Linked Position (Slave)"
122             textPreferenceValue="false"
123             textPreferenceKey="linked.slave.text"
124             highlightPreferenceKey="linked.slave.highlight"
125             highlightPreferenceValue="true"
126             textStylePreferenceKey="linked.slave.text.style"
127             textStylePreferenceValue="NONE"
128             verticalRulerPreferenceKey="linked.slave.verticalruler"
129             verticalRulerPreferenceValue="false"
130             overviewRulerPreferenceKey="linked.slave.overviewruler">
131       </specification>      
132       <specification
133             annotationType="org.eclipse.jdt.ui.link.target"
134             colorPreferenceValue="70,100,165"
135             colorPreferenceKey="linked.target.color"
136             isGoToPreviousNavigationTarget="false"
137             isGoToPreviousNavigationTargetKey="linked.target.navigation.previous"
138             showInNextPrevDropdownToolbarAction="false"
139             showInNextPrevDropdownToolbarActionKey="linked.target.navigation.dropdown"
140             isGoToNextNavigationTarget="false"
141             isGoToNextNavigationTargetKey="linked.target.navigation.next"
142             contributesToHeader="false"
143             overviewRulerPreferenceValue="false"
144             presentationLayer="4"
145             label="Linked Position (Target)"
146             textPreferenceValue="true"
147             textPreferenceKey="linked.target.text"
148             highlightPreferenceKey="linked.target.highlight"
149             highlightPreferenceValue="false"
150             textStylePreferenceKey="linked.target.text.style"
151             textStylePreferenceValue="BOX"
152             verticalRulerPreferenceKey="linked.target.verticalruler"
153             verticalRulerPreferenceValue="false"
154             overviewRulerPreferenceKey="linked.target.overviewruler">
155       </specification>
156       <specification
157             annotationType="org.eclipse.jdt.ui.link.exit"
158             colorPreferenceValue="0,180,0"
159             colorPreferenceKey="linked.exit.color"
160             isGoToPreviousNavigationTarget="false"
161             isGoToPreviousNavigationTargetKey="linked.exit.navigation.previous"
162             showInNextPrevDropdownToolbarAction="false"
163             showInNextPrevDropdownToolbarActionKey="linked.exit.navigation.dropdown"
164             isGoToNextNavigationTarget="false"
165             isGoToNextNavigationTargetKey="linked.exit.navigation.next"
166             contributesToHeader="false"
167             overviewRulerPreferenceValue="false"
168             presentationLayer="4"
169             label="Linked Position (Exit)"
170             textPreferenceValue="true"
171             textPreferenceKey="linked.exit.text"
172             highlightPreferenceKey="linked.exit.highlight"
173             highlightPreferenceValue="false"
174             textStylePreferenceKey="linked.exit.text.style"
175             textStylePreferenceValue="IBEAM"
176             verticalRulerPreferenceKey="linked.exit.verticalruler"
177             verticalRulerPreferenceValue="false"
178             overviewRulerPreferenceKey="linked.exit.overviewruler">
179       </specification>
180         </extension>
181         <extension
182          id="wikibuilder"
183          name="Wiki Builder"
184          point="org.eclipse.core.resources.builders">
185       <builder>
186          <run class="net.sourceforge.phpeclipse.wiki.builder.WikiBuilder"/>  
187       </builder>
188    </extension>
189    
190    <extension
191          point="org.eclipse.ui.popupMenus">
192        <objectContribution
193              adaptable="false"
194              objectClass="org.eclipse.core.resources.IProject"
195              id="net.sourceforge.phpeclipse.wiki.addwikibuilder">
196          <action
197                label="Add Wiki Builder"
198                class="net.sourceforge.phpeclipse.wiki.builder.AddBuilderAction"
199                menubarPath="additions"
200                id="net.sourceforge.phpeclipse.wiki.builder.AddBuilderAction">
201          </action>
202       </objectContribution>
203   <!--    <objectContribution
204              adaptable="false"
205              objectClass="org.eclipse.core.resources.IFile"
206              id="net.sourceforge.phpeclipse.wiki.createpager">
207          <action
208                label="Create HTML Page"
209                class="net.sourceforge.phpeclipse.wiki.builder.CreatePageAction"
210                menubarPath="additions"
211                id="net.sourceforge.phpeclipse.wiki.builder.CreatePageAction">
212          </action>
213       </objectContribution> -->
214     </extension>
215     
216     <extension point="org.eclipse.ui.preferencePages">
217       <page
218            name="Wikipedia Editor Configurations"
219            id="net.sourceforge.phpeclipse.wiki.ui.internal.configurationPreferencePage"
220            class="net.sourceforge.phpeclipse.wiki.ui.internal.ConfigurationPreferencePage"/>
221       <page
222             name="Templates"
223             category="net.sourceforge.phpeclipse.wiki.ui.internal.configurationPreferencePage"
224             class="net.sourceforge.phpeclipse.wiki.preferences.TemplatesPreferencePage"
225             id="net.sourceforge.phpeclipse.wiki.preferences.TemplatesPreferencePage"/>
226       <page
227            name="Wiki Project Defaults"
228            category="net.sourceforge.phpeclipse.wiki.ui.internal.configurationPreferencePage"
229            class="net.sourceforge.phpeclipse.wiki.preferences.WikiProjectPreferences"
230            id="net.sourceforge.phpeclipse.wiki.preferences.WikiProjectPreferences"/>
231     </extension>
232     <extension
233          point="org.eclipse.ui.propertyPages">
234       <page
235             objectClass="org.eclipse.core.resources.IProject"
236             name="Wiki Project Settings"
237             class="net.sourceforge.phpeclipse.wiki.preferences.WikiProjectPreferences"
238             id="net.sourceforge.phpeclipse.wiki.preferences.WikiProjectPreferences">
239       </page>
240     </extension>
241     
242     <extension
243          point="org.eclipse.ui.popupMenus">
244       <viewerContribution
245             targetID="#PHPEditorContext"
246             id="net.sourceforge.phpeclipse.wiki.phpeditor.viewercontribution">
247          <action
248                label="Open Wiki Link"
249                class="net.sourceforge.phpeclipse.wiki.actions.OpenWikiLinkEditorAction"
250                menubarPath="additions"
251                id="net.sourceforge.phpeclipse.wiki.actions.OpenWikiLinkEditorAction">
252          </action>
253       </viewerContribution>
254       
255       <viewerContribution
256             targetID="#CompilationUnitEditorContext"
257             id="net.sourceforge.phpeclipse.wiki.phpeditor.viewercontribution">
258          <action
259                label="Open Wiki Link"
260                class="net.sourceforge.phpeclipse.wiki.actions.OpenWikiLinkEditorAction"
261                menubarPath="additions"
262                id="net.sourceforge.phpeclipse.wiki.actions.OpenWikiLinkEditorAction">
263          </action>
264       </viewerContribution>
265       <viewerContribution
266             targetID="#EditorContext"
267             id="net.sourceforge.phpeclipse.wiki.texteditor.viewercontribution">
268          <action
269                label="Open Wiki Link"
270                class="net.sourceforge.phpeclipse.wiki.actions.OpenWikiLinkEditorAction"
271                menubarPath="additions"
272                id="net.sourceforge.phpeclipse.wiki.actions.OpenWikiLinkEditorAction">
273          </action>
274       </viewerContribution>            
275       <viewerContribution
276             targetID="#PHPEditorContext"
277             id="net.sourceforge.phpeclipse.wiki.phpeditor.viewercontribution">
278            <menu
279                         id="mediawikiMenu"
280                         label="%MediaWiki.label"
281                         path="rest">
282                  </menu>
283                  <action
284                label="Refresh Wikibooks-en"
285                class="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikibooksENAction"
286                menubarPath="mediawikiMenu/additions"
287                id="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikibooksENAction">
288          </action>
289                  <action
290                label="Refresh Wikipedia-en"
291                class="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikipediaENAction"
292                menubarPath="mediawikiMenu/additions"
293                id="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikipediaENAction">
294          </action>
295 <!--         <action
296                label="Download Link's Wiki Text (Wikibooks.org)"
297                class="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikiLinkEditorAction"
298                menubarPath="mediawikiMenu/additions"
299                id="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikiLinkEditorAction">
300          </action> -->
301          <action
302                label="Refresh Wikipedia..."
303                class="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikipediaAction"
304                menubarPath="mediawikiMenu/additions"
305                id="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikipediaAction">
306          </action>
307       </viewerContribution>
308             <viewerContribution
309             targetID="#EditorContext"
310             id="net.sourceforge.phpeclipse.wiki.texteditor.viewercontribution">
311          <menu
312                         id="blogwikiMenu"
313                         label="%BlogWiki.label"
314                         path="rest">
315                  </menu>
316                  <action
317                label="Blog a Wiki text"
318                class="net.sourceforge.phpeclipse.wiki.actions.blogwiki.NewPostBlogWikiAction"
319                menubarPath="blogwikiMenu/additions"
320                id="net.sourceforge.phpeclipse.wiki.actions.blogwiki.NewPostBlogWikiAction">
321          </action> 
322       </viewerContribution>   
323       <viewerContribution
324             targetID="#EditorContext"
325             id="net.sourceforge.phpeclipse.wiki.texteditor.viewercontribution">
326          <menu
327                         id="bloghtmlMenu"
328                         label="%BlogHTML.label"
329                         path="rest">
330                  </menu>
331                  <action
332                label="Blog a HTML text"
333                class="net.sourceforge.phpeclipse.wiki.actions.blogwiki.NewPostBlogHTMLAction"
334                menubarPath="bloghtmlMenu/additions"
335                id="net.sourceforge.phpeclipse.wiki.actions.blogwiki.NewPostBlogHTMLAction">
336          </action> 
337       </viewerContribution>       
338       
339       <viewerContribution
340             targetID="#EditorContext"
341             id="net.sourceforge.phpeclipse.wiki.texteditor.viewercontribution">
342          <menu
343                         id="mediawikiMenu"
344                         label="%MediaWiki.label"
345                         path="rest">
346                  </menu>
347                  <action
348                label="Refresh Text from SQL"
349                class="net.sourceforge.phpeclipse.wiki.actions.mediawiki.LoadWikipediaSQLAction"
350                menubarPath="mediawikiMenu/additions"
351                id="net.sourceforge.phpeclipse.wiki.actions.mediawiki.LoadWikipediaSQLAction">
352          </action>
353                  <action
354                label="Refresh Wikibooks-en"
355                class="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikibooksENAction"
356                menubarPath="mediawikiMenu/additions"
357                id="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikibooksENAction">
358          </action>
359          <action
360                label="Refresh Wikipedia-en"
361                class="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikipediaENAction"
362                menubarPath="mediawikiMenu/additions"
363                id="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikipediaENAction">
364          </action>
365   <!--       <action 
366                label="Download Link's Wiki Text (Wikibooks.org)"
367                class="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikiLinkEditorAction"
368                menubarPath="mediawikiMenu/additions"
369                id="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikiLinkEditorAction">
370          </action> -->
371          <action
372                label="Refresh Wikipedia..."
373                class="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikipediaAction"
374                menubarPath="mediawikiMenu/additions"
375                id="net.sourceforge.phpeclipse.wiki.actions.mediawiki.DownloadWikipediaAction">
376          </action>
377       </viewerContribution>   
378       <viewerContribution
379             targetID="#CompilationUnitEditorContext"
380             id="net.sourceforge.phpeclipse.wiki.phpeditor.viewercontribution">
381            <menu
382                         id="httpqueryMenu"
383                         label="%HTTPQuery.label"
384                         path="rest">
385                  </menu>
386                  <action
387                label="Koders.com Search"
388                class="net.sourceforge.phpeclipse.wiki.actions.httpquery.KodersAction"
389                menubarPath="httpqueryMenu/additions"
390                id="net.sourceforge.phpeclipse.wiki.actions.httpquery.KodersAction">
391          </action>
392                  <action
393                label="Google Search"
394                class="net.sourceforge.phpeclipse.wiki.actions.httpquery.GoogleAction"
395                menubarPath="httpqueryMenu/additions"
396                id="net.sourceforge.phpeclipse.wiki.actions.httpquery.GoogleAction">
397          </action>
398                  <action
399                label="HTTP Query..."
400                class="net.sourceforge.phpeclipse.wiki.actions.httpquery.HTTPQueryAction"
401                menubarPath="httpqueryMenu/additions"
402                id="net.sourceforge.phpeclipse.wiki.actions.httpquery.HTTPQueryAction">
403          </action>
404       </viewerContribution>
405       <viewerContribution
406             targetID="#PHPEditorContext"
407             id="net.sourceforge.phpeclipse.wiki.phpeditor.viewercontribution">
408            <menu
409                         id="httpqueryMenu"
410                         label="%HTTPQuery.label"
411                         path="rest">
412                  </menu>
413                  <action
414                label="Koders.com Search"
415                class="net.sourceforge.phpeclipse.wiki.actions.httpquery.KodersAction"
416                menubarPath="httpqueryMenu/additions"
417                id="net.sourceforge.phpeclipse.wiki.actions.httpquery.KodersAction">
418          </action>
419                  <action
420                label="Google Search"
421                class="net.sourceforge.phpeclipse.wiki.actions.httpquery.GoogleAction"
422                menubarPath="httpqueryMenu/additions"
423                id="net.sourceforge.phpeclipse.wiki.actions.httpquery.GoogleAction">
424          </action>
425                  <action
426                label="HTTP Query..."
427                class="net.sourceforge.phpeclipse.wiki.actions.httpquery.HTTPQueryAction"
428                menubarPath="httpqueryMenu/additions"
429                id="net.sourceforge.phpeclipse.wiki.actions.httpquery.HTTPQueryAction">
430          </action>
431       </viewerContribution>
432       <viewerContribution
433             targetID="#EditorContext"
434             id="net.sourceforge.phpeclipse.wiki.texteditor.viewercontribution">
435          <menu
436                         id="httpqueryMenu"
437                         label="%HTTPQuery.label"
438                         path="rest">
439                  </menu>
440                  <action
441                label="Koders.com Search"
442                class="net.sourceforge.phpeclipse.wiki.actions.httpquery.KodersAction"
443                menubarPath="httpqueryMenu/additions"
444                id="net.sourceforge.phpeclipse.wiki.actions.httpquery.KodersAction">
445          </action>
446                  <action
447                label="Google Search"
448                class="net.sourceforge.phpeclipse.wiki.actions.httpquery.GoogleAction"
449                menubarPath="httpqueryMenu/additions"
450                id="net.sourceforge.phpeclipse.wiki.actions.httpquery.GoogleAction">
451          </action>
452                  <action
453                label="HTTP Query..."
454                class="net.sourceforge.phpeclipse.wiki.actions.httpquery.HTTPQueryAction"
455                menubarPath="httpqueryMenu/additions"
456                id="net.sourceforge.phpeclipse.wiki.actions.httpquery.HTTPQueryAction">
457          </action>
458       </viewerContribution>   
459   </extension>
460   <extension 
461          name="Wikipedia"
462          point="org.eclipse.ui.exportWizards">
463       <wizard 
464             name="Wikipedia"
465             class="net.sourceforge.phpeclipse.wiki.export.WikiExportWizard"
466             id="WikiWizard">
467       </wizard>
468    </extension>
469 </plugin>