Statistics
| Revision:

root / tmp / org.txm.referencer.rcp / plugin.xml @ 626

History | View | Annotate | Download (4.5 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.editors">
6
               <editor
7
            class="org.txm.rcp.editors.referencer.ReferencerEditor"
8
            default="false"
9
            icon="icons/functions/referencer.png"
10
            id="org.txm.rcp.editors.referencer.ReferencerEditor"
11
            name="%editor.name.14">
12
      </editor>
13
   </extension>
14
   <extension
15
         point="org.eclipse.ui.menus">
16
               <menuContribution
17
                     locationURI="menu:menu.tools">
18
                     <command
19
                  commandId="org.txm.referencer.rcp.commands.ComputeReferencer"
20
                  icon="icons/functions/referencer.png"
21
                  style="push"
22
                  tooltip="%command.tooltip.62">
23
               <visibleWhen
24
                     checkEnabled="false">
25
                  <reference
26
                        definitionId="OneCorpusSelected">
27
                  </reference>
28
               </visibleWhen>
29
            </command>
30
               </menuContribution>
31
               <menuContribution
32
                     allPopups="false"
33
                     locationURI="toolbar:org.txm.rcp.toolbartools">
34
                  <command
35
                        commandId="org.txm.referencer.rcp.commands.ComputeReferencer"
36
                        icon="icons/functions/referencer.png"
37
                        style="push"
38
                        tooltip="%command.tooltip.62">
39
                     <visibleWhen
40
                           checkEnabled="false">
41
                        <reference
42
                              definitionId="OneCorpusSelected">
43
                        </reference>
44
                     </visibleWhen>
45
                  </command>
46
               </menuContribution>
47
               <menuContribution
48
                     allPopups="false"
49
                     locationURI="popup:org.txm.rcp.views.corpora.CorporaView">
50
                  <command
51
                        commandId="org.txm.referencer.rcp.commands.ComputeReferencer"
52
                        icon="icons/functions/referencer.png"
53
                        style="push"
54
                        tooltip="%command.tooltip.62">
55
                     <visibleWhen
56
                           checkEnabled="false">
57
                        <reference
58
                              definitionId="OneCorpusSelected">
59
                        </reference>
60
                     </visibleWhen>
61
                  </command>
62
               </menuContribution>
63
               <menuContribution
64
            locationURI="popup:ReferencerEditorContextMenu">
65
         <command
66
               commandId="org.txm.rcp.commands.link.ReferencerToConc"
67
               style="push">
68
         </command>
69
      </menuContribution>
70
   </extension>
71
   <extension
72
         point="org.eclipse.ui.commands">
73
         <command
74
            defaultHandler="org.txm.rcp.commands.link.ReferencerToConc"
75
            id="org.txm.rcp.commands.link.ReferencerToConc"
76
            name="%command.name.57">
77
      </command>
78
      
79
            <command
80
            categoryId="org.txm.rcp.category.txm"
81
            defaultHandler="org.txm.referencer.rcp.handlers.ComputeReferencer"
82
            id="org.txm.referencer.rcp.commands.ComputeReferencer"
83
            name="%command.name.44">
84
      </command>
85
   </extension>
86
   <extension
87
         point="org.eclipse.core.expressions.definitions">
88
       <definition
89
                  id="OneReferencerSelected">
90
               <with
91
                     variable="selection">
92
                  <iterate
93
                        ifEmpty="false"
94
                        operator="and">
95
                     <instanceof
96
                           value="org.txm.referencer.core.functions.Referencer">
97
                     </instanceof>
98
                  </iterate>
99
               </with>
100
            </definition>
101
   </extension>
102
   <extension
103
         point="org.eclipse.core.runtime.adapters">
104
       <factory
105
       adaptableType="org.txm.referencer.core.functions.Referencer"
106
       class="org.txm.referencer.rcp.adapters.ReferencerAdapterFactory">
107
    <adapter
108
          type="org.eclipse.ui.model.IWorkbenchAdapter">
109
    </adapter>
110
 </factory>
111
   </extension>
112
   <extension
113
         point="org.eclipse.ui.preferencePages">
114
            <page
115
            category="org.txm.rcp.preferences.UserPreferencePage"
116
            class="org.txm.references.rcp.preferences.ReferencerPreferencePage"
117
            id="org.txm.references.rcp.preferences.ReferencerPreferencePage"
118
            name="Referencer">
119
      </page>
120
   </extension>
121
</plugin>