Statistics
| Revision:

root / tmp / org.txm.internalview.rcp / plugin.xml @ 859

History | View | Annotate | Download (5.9 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin> <extension
4
         point="org.eclipse.ui.commands">
5
      <command
6
            categoryId="org.txm.rcp.category.txm"
7
            defaultHandler="org.txm.internalview.rcp.handlers.ComputeInternalView"
8
            id="org.txm.internalview.rcp.handlers.ComputeInternalView"
9
            name="%command.name"
10
            returnTypeId="org.txm.internalview.core.functions.InternalView">
11
      </command>
12
   </extension>   <extension
13
         point="org.eclipse.ui.menus">
14
      <menuContribution
15
            allPopups="false"
16
            locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.properties.rcp.handlers.ComputeProperties">
17
         <command
18
               commandId="org.txm.internalview.rcp.handlers.ComputeInternalView"
19
               icon="icons/internal_view.png"
20
               style="push">
21
            <visibleWhen
22
                  checkEnabled="false">
23
               <reference
24
                     definitionId="OneCorpusSelected">
25
               </reference>
26
            </visibleWhen>
27
         </command>
28
      </menuContribution>
29
      <menuContribution
30
            allPopups="false"
31
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.properties.rcp.handlers.ComputeProperties">
32
         <command
33
               commandId="org.txm.internalview.rcp.handlers.ComputeInternalView"
34
               icon="icons/internal_view.png"
35
               style="push">
36
            <visibleWhen
37
                  checkEnabled="false">
38
               <reference
39
                     definitionId="OneCorpusSelected">
40
               </reference>
41
            </visibleWhen>
42
         </command>
43
      </menuContribution>
44
      <menuContribution
45
            locationURI="menu:menu.corpus?after=org.txm.properties.rcp.handlers.ComputeProperties">
46
         <command
47
               commandId="org.txm.internalview.rcp.handlers.ComputeInternalView"
48
               icon="icons/internal_view.png"
49
               style="push"
50
               tooltip="%command.tooltip">
51
            <visibleWhen
52
                  checkEnabled="false">
53
               <reference
54
                     definitionId="OneCorpusSelected">
55
               </reference>
56
            </visibleWhen>
57
         </command>
58
      </menuContribution>
59
      
60
   </extension>   <extension
61
         point="org.eclipse.ui.editors">
62
      <editor
63
            class="org.txm.internalview.rcp.editors.InternalViewEditor"
64
            default="false"
65
            icon="icons/internal_view.png"
66
            id="org.txm.internalview.rcp.editors.InternalViewEditor"
67
            name="Internal View">
68
      </editor>
69
   </extension>   <extension
70
         point="org.eclipse.core.runtime.adapters">
71
      <factory
72
            adaptableType="org.txm.internalview.core.functions.InternalView"
73
            class="org.txm.internalview.rcp.adapters.InternalViewAdapterFactory">
74
         <adapter
75
               type="org.eclipse.ui.model.IWorkbenchAdapter">
76
         </adapter>
77
      </factory>
78
   </extension> <extension
79
         point="org.eclipse.core.expressions.definitions">
80
      <definition
81
            id="OneInternalViewSelected">
82
         <with
83
               variable="selection">
84
            <iterate
85
                  ifEmpty="false"
86
                  operator="and">
87
               <instanceof
88
                     value="org.txm.internalview.core.functions.InternalView">
89
               </instanceof>
90
            </iterate>
91
         </with>
92
      </definition>
93
      <definition
94
            id="InternalViewEditorActive">
95
         <with
96
               variable="activePart">
97
            <instanceof
98
                  value="org.txm.internalview.rcp.editors.InternalViewEditor">
99
            </instanceof>
100
         </with>
101
      </definition>
102
   </extension>
103
                <extension
104
                      point="org.eclipse.ui.handlers">
105
                   <handler
106
                         class="org.txm.internalview.rcp.handlers.SendInternalViewTo"
107
                         commandId="org.txm.concordance.rcp.handlers.ComputeConcordance">
108
                      <activeWhen>
109
                      <and>
110
                            <reference
111
                                  definitionId="InternalViewEditorActive">
112
                            </reference>
113
                                     <reference
114
                                           definitionId="SendSelectionContextNotActive">
115
                                     </reference>
116
                            </and>
117
                      </activeWhen>
118
                   </handler>
119
                   <handler
120
                         class="org.txm.internalview.rcp.handlers.SendInternalViewTo"
121
                         commandId="org.txm.index.rcp.handlers.ComputeIndex">
122
                      <activeWhen>
123
                      <and>
124
                         <reference
125
                               definitionId="InternalViewEditorActive">
126
                         </reference>
127
                                  <reference
128
                                        definitionId="SendSelectionContextNotActive">
129
                                  </reference>
130
                         </and>
131
                      </activeWhen>
132
                   </handler>
133
                   <handler
134
                         class="org.txm.internalview.rcp.handlers.SendInternalViewTo"
135
                         commandId="org.txm.progression.rcp.handlers.ComputeProgression">
136
                      <activeWhen>
137
                      <and>
138
                            <reference
139
                                  definitionId="InternalViewEditorActive">
140
                            </reference>
141
                                     <reference
142
                                           definitionId="SendSelectionContextNotActive">
143
                                     </reference>
144
                            </and>
145
                      </activeWhen>
146
                   </handler>
147
                </extension>
148
</plugin>