Statistics
| Revision:

root / tmp / org.txm.concordance.rcp / plugin.xml @ 399

History | View | Annotate | Download (4.1 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
  <extension-point id="org.txm.rcp.extensionpoint.backtotext" name="Back to text" schema="schema/org.txm.rcp.extensionpoint.backtotext.exsd"/>
5

    
6
   <extension
7
         point="org.eclipse.core.runtime.adapters">
8
      <factory
9
            adaptableType="org.txm.concordance.core.functions.Concordance"
10
            class="org.txm.concordance.rcp.adapters.ConcordanceAdapterFactory">
11
         <adapter
12
               type="org.eclipse.ui.model.IWorkbenchAdapter">
13
         </adapter>
14
      </factory>
15
   </extension>
16
   <extension
17
         point="org.eclipse.core.expressions.definitions">
18
      <definition
19
            id="OneConcordanceSelected">
20
         <with
21
               variable="selection">
22
            <iterate
23
                  ifEmpty="false"
24
                  operator="and">
25
               <instanceof
26
                     value="org.txm.concordance.core.functions.Concordance">
27
               </instanceof>
28
            </iterate>
29
         </with>
30
      </definition>
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="ComputeConcordance"
39
               icon="icons/concordance.png"
40
               style="push">
41
            <visibleWhen
42
                  checkEnabled="false">
43
               <or>
44
                  <reference
45
                        definitionId="OneCorpusSelected">
46
                  </reference>
47
               </or>
48
            </visibleWhen>
49
         </command>
50
      </menuContribution>
51
      <menuContribution
52
            locationURI="menu:menu.tools">
53
         <command
54
               commandId="ComputeConcordance"
55
               icon="icons/concordance.png"
56
               style="push">
57
            <visibleWhen
58
                  checkEnabled="false">
59
               <or>
60
                  <reference
61
                        definitionId="OneCorpusSelected">
62
                  </reference>
63
               </or>
64
            </visibleWhen>
65
         </command>
66
      </menuContribution>
67
      <menuContribution
68
            allPopups="false"
69
            locationURI="toolbar:org.txm.rcp.toolbartools">
70
         <command
71
               commandId="ComputeConcordance"
72
               icon="icons/concordance.png"
73
               style="push"
74
               tooltip="%command.tooltip">
75
            <visibleWhen
76
                  checkEnabled="false">
77
               <or>
78
                  <reference
79
                        definitionId="OneCorpusSelected">
80
                  </reference>
81
               </or>
82
            </visibleWhen>
83
         </command>
84
      </menuContribution>
85
      <menuContribution
86
            locationURI="popup:org.txm.rcp.editors.ConcordancesEditor">
87
         <command
88
               commandId="DeleteConcordanceLines"
89
               style="push">
90
         </command>
91
      </menuContribution>
92
   </extension>
93
   <extension
94
         point="org.eclipse.ui.commands">
95
      <command
96
            categoryId="org.txm.rcp.category.txm"
97
            defaultHandler="org.txm.concordance.rcp.handlers.ComputeConcordance"
98
            id="ComputeConcordance"
99
            name="%command.name">
100
      </command>
101
      <command
102
            defaultHandler="org.txm.concordance.rcp.handlers.DeleteLines"
103
            id="DeleteConcordanceLines"
104
            name="%command.name.37">
105
      </command>
106
   </extension>
107
   <extension
108
         point="org.eclipse.ui.preferencePages">
109
      <page
110
            category="org.txm.rcp.preferences.UserPreferencePage"
111
            class="org.txm.concordance.rcp.preferences.ConcordancePreferencePage"
112
            id="ConcordancePreferencePage"
113
            name="%page.name">
114
      </page>
115
   </extension>
116
   <extension
117
         point="org.eclipse.ui.editors">
118
      <editor
119
            class="org.txm.concordance.rcp.editors.ConcordanceEditor"
120
            default="false"
121
            icon="icons/concordance.png"
122
            id="ConcordanceEditor"
123
            name="%editor.name">
124
      </editor>
125
   </extension>
126

    
127
</plugin>