Statistics
| Revision:

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

History | View | Annotate | Download (5.2 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
  <extension-point id="org.txm.concordance.rcp.editors.ConcordanceEditorExtension" name="concordance extension" schema="schema/org.txm.concordance.rcp.concordanceeditor.extension.exsd"/>
6

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

    
142
</plugin>