Statistics
| Revision:

root / tmp / org.txm.information.rcp / plugin.xml @ 845

History | View | Annotate | Download (3.2 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.preferencePages">
6
      <page
7
            category="org.txm.rcp.preferences.UserPreferencePage"
8
            class="org.txm.properties.rcp.preferences.PropertiesPreferencePage"
9
            id="org.txm.properties.rcp.preferences.PropertiesPreferencePage"
10
            name="%command.name">
11
      </page>
12
   </extension>
13
   <extension
14
         point="org.eclipse.ui.commands">
15
      <command
16
            defaultHandler="org.txm.properties.rcp.handlers.ComputeProperties"
17
            id="org.txm.properties.rcp.handlers.ComputeProperties"
18
            name="%command.name"
19
            returnTypeId="org.txm.properties.core.functions.Properties">
20
      </command>
21
   </extension>
22
   <extension
23
         point="org.eclipse.ui.editors">
24
      <editor
25
            class="org.txm.properties.rcp.editors.PropertiesEditor"
26
            default="false"
27
            icon="icons/functions/properties.png"
28
            id="org.txm.properties.rcp.editors.PropertiesEditor"
29
            name="%command.name">
30
      </editor>
31
   </extension>
32
   <extension
33
         point="org.eclipse.core.runtime.adapters">
34
      <factory
35
            adaptableType="org.txm.information.core.functions.Information"
36
            class="org.txm.properties.rcp.adapters.PropertiesAdapterFactory">
37
         <adapter
38
               type="org.eclipse.ui.model.IWorkbenchAdapter">
39
         </adapter>
40
      </factory>
41
   </extension>
42
   <extension
43
         point="org.eclipse.ui.menus">
44
      <menuContribution
45
            locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.edition.rcp.handlers.OpenEdition">
46
         <command
47
               commandId="org.txm.properties.rcp.handlers.ComputeProperties"
48
               icon="icons/functions/properties.png"
49
               style="push"
50
               tooltip="%command.name">
51
            <visibleWhen
52
                  checkEnabled="false">
53
               <or>
54
                  <reference
55
                        definitionId="OneCorpusSelected">
56
                  </reference>
57
               </or>
58
            </visibleWhen>
59
         </command>
60
      </menuContribution>
61
      <menuContribution
62
            locationURI="menu:menu.corpus?after=menu.corpus.read">
63
         <command
64
               commandId="org.txm.properties.rcp.handlers.ComputeProperties"
65
               icon="icons/functions/properties.png"
66
               style="push">
67
            <visibleWhen
68
                  checkEnabled="false">
69
               <reference
70
                     definitionId="OneCorpusSelected">
71
               </reference>
72
            </visibleWhen>
73
         </command>
74
      </menuContribution>
75
      <menuContribution
76
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.read">
77
         <command
78
               commandId="org.txm.properties.rcp.handlers.ComputeProperties"
79
               icon="icons/functions/properties.png"
80
               style="push">
81
            <visibleWhen
82
                  checkEnabled="false">
83
               <reference
84
                     definitionId="OneCorpusSelected">
85
               </reference>
86
            </visibleWhen>
87
         </command>
88
      </menuContribution>
89
   </extension>
90
</plugin>