Statistics
| Revision:

root / tmp / org.txm.cooccurrence.rcp / plugin.xml @ 491

History | View | Annotate | Download (4.4 kB)

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

    
130
</plugin>