Statistics
| Revision:

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

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

    
129
</plugin>