Statistics
| Revision:

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

History | View | Annotate | Download (4 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
            <menuContribution
60
            locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
61
         <command
62
               commandId="org.txm.rcp.commands.link.ToConcordance"
63
               style="push">
64
         </command>
65
         <command
66
               commandId="org.txm.rcp.commands.link.ToIndex"
67
               style="push">
68
         </command>
69
         <command
70
               commandId="org.txm.rcp.commands.link.ToProgression"
71
               style="push">
72
         </command>
73
      </menuContribution>
74
      
75
   </extension>   <extension
76
         point="org.eclipse.ui.editors">
77
      <editor
78
            class="org.txm.internalview.rcp.editors.InternalViewEditor"
79
            default="false"
80
            icon="icons/internal_view.png"
81
            id="org.txm.internalview.rcp.editors.InternalViewEditor"
82
            name="Internal View">
83
      </editor>
84
   </extension>   <extension
85
         point="org.eclipse.core.runtime.adapters">
86
      <factory
87
            adaptableType="org.txm.internalview.core.functions.InternalView"
88
            class="org.txm.internalview.rcp.adapters.InternalViewAdapterFactory">
89
         <adapter
90
               type="org.eclipse.ui.model.IWorkbenchAdapter">
91
         </adapter>
92
      </factory>
93
   </extension> <extension
94
         point="org.eclipse.core.expressions.definitions">
95
      <definition
96
            id="OneInternalViewSelected">
97
         <with
98
               variable="selection">
99
            <iterate
100
                  ifEmpty="false"
101
                  operator="and">
102
               <instanceof
103
                     value="org.txm.internalview.core.functions.InternalView">
104
               </instanceof>
105
            </iterate>
106
         </with>
107
      </definition>
108
   </extension>
109
</plugin>