Statistics
| Revision:

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

History | View | Annotate | Download (3.7 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="Internal View">
10
      </command>
11
   </extension>   <extension
12
         point="org.eclipse.ui.menus">
13
      <menuContribution
14
            allPopups="false"
15
            locationURI="toolbar:org.txm.rcp.toolbartools">
16
         <command
17
               commandId="org.txm.internalview.rcp.handlers.ComputeInternalView"
18
               icon="icons/internal_view.png"
19
               style="push">
20
            <visibleWhen
21
                  checkEnabled="false">
22
               <reference
23
                     definitionId="OneCorpusSelected">
24
               </reference>
25
            </visibleWhen>
26
         </command>
27
      </menuContribution>
28
      <menuContribution
29
            allPopups="false"
30
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView">
31
         <command
32
               commandId="org.txm.internalview.rcp.handlers.ComputeInternalView"
33
               icon="icons/internal_view.png"
34
               style="push">
35
            <visibleWhen
36
                  checkEnabled="false">
37
               <reference
38
                     definitionId="OneCorpusSelected">
39
               </reference>
40
            </visibleWhen>
41
         </command>
42
      </menuContribution>
43
      <menuContribution
44
            locationURI="menu:menu.tools">
45
         <command
46
               commandId="org.txm.internalview.rcp.handlers.ComputeInternalView"
47
               icon="icons/internal_view.png"
48
               style="push"
49
               tooltip="Internal view">
50
            <visibleWhen
51
                  checkEnabled="false">
52
               <reference
53
                     definitionId="OneCorpusSelected">
54
               </reference>
55
            </visibleWhen>
56
         </command>
57
      </menuContribution>
58
            <menuContribution
59
            locationURI="popup:InternalViewEditorContextMenu">
60
         <command
61
               commandId="org.txm.rcp.commands.link.ToConcordance"
62
               style="push">
63
         </command>
64
         <command
65
               commandId="org.txm.rcp.commands.link.ToIndex"
66
               style="push">
67
         </command>
68
         <command
69
               commandId="org.txm.rcp.commands.link.ToProgression"
70
               style="push">
71
         </command>
72
      </menuContribution>
73
      
74
   </extension>   <extension
75
         point="org.eclipse.ui.editors">
76
      <editor
77
            class="org.txm.internalview.rcp.editors.InternalViewEditor"
78
            default="false"
79
            icon="icons/internal_view.png"
80
            id="org.txm.internalview.rcp.editors.InternalViewEditor"
81
            name="Internal View">
82
      </editor>
83
   </extension>   <extension
84
         point="org.eclipse.core.runtime.adapters">
85
      <factory
86
            adaptableType="org.txm.internalview.core.functions.InternalView"
87
            class="org.txm.internalview.rcp.adapters.InternalViewAdapterFactory">
88
         <adapter
89
               type="org.eclipse.ui.model.IWorkbenchAdapter">
90
         </adapter>
91
      </factory>
92
   </extension> <extension
93
         point="org.eclipse.core.expressions.definitions">
94
      <definition
95
            id="OneInternalViewSelected">
96
         <with
97
               variable="selection">
98
            <iterate
99
                  ifEmpty="false"
100
                  operator="and">
101
               <instanceof
102
                     value="org.txm.internalview.core.functions.InternalView">
103
               </instanceof>
104
            </iterate>
105
         </with>
106
      </definition>
107
   </extension>
108
</plugin>