Statistics
| Revision:

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

History | View | Annotate | Download (4.3 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="org.txm.concordance.rcp.handlers.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="org.txm.concordance.rcp.handlers.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="org.txm.concordance.rcp.handlers.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="org.txm.concordance.rcp.handlers.DeleteLines"
89
               icon="platform:/plugin/org.txm.rcp/icons/cross.png"
90
               style="push">
91
         </command>
92
      </menuContribution>
93
   </extension>
94
   <extension
95
         point="org.eclipse.ui.commands">
96
      <command
97
            categoryId="org.txm.rcp.category.txm"
98
            defaultHandler="org.txm.concordance.rcp.handlers.ComputeConcordance"
99
            id="org.txm.concordance.rcp.handlers.ComputeConcordance"
100
            name="%command.name">
101
      </command>
102
      <command
103
            defaultHandler="org.txm.concordance.rcp.handlers.DeleteLines"
104
            id="org.txm.concordance.rcp.handlers.DeleteLines"
105
            name="%command.name.37">
106
      </command>
107
   </extension>
108
   <extension
109
         point="org.eclipse.ui.preferencePages">
110
      <page
111
            category="org.txm.rcp.preferences.UserPreferencePage"
112
            class="org.txm.concordance.rcp.preferences.ConcordancePreferencePage"
113
            id="ConcordancePreferencePage"
114
            name="%page.name">
115
      </page>
116
   </extension>
117
   <extension
118
         point="org.eclipse.ui.editors">
119
      <editor
120
            class="org.txm.concordance.rcp.editors.ConcordanceEditor"
121
            default="false"
122
            icon="icons/concordance.png"
123
            id="org.txm.concordance.rcp.editors.ConcordanceEditor"
124
            name="%editor.name">
125
      </editor>
126
   </extension>
127

    
128
</plugin>