Statistics
| Revision:

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

History | View | Annotate | Download (3.7 kB)

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

    
115
</plugin>