Statistics
| Revision:

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

History | View | Annotate | Download (3.2 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.rcp.internal.rcp.handler.ComputeInternalView"
8
            id="org.txm.rcp.internal.rcp.handler.ComputeInternalView"
9
            name="InternalView">
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.rcp.internal.rcp.handler.ComputeInternalView"
18
               icon="icons/functions/InternalView.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.CorporaView">
31
         <command
32
               commandId="org.txm.rcp.internal.rcp.handler.ComputeInternalView"
33
               icon="icons/functions/InternalView.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.rcp.internal.rcp.handler.ComputeInternalView"
47
               icon="icons/functions/InternalView.png"
48
               style="push">
49
            <visibleWhen
50
                  checkEnabled="false">
51
               <reference
52
                     definitionId="OneCorpusSelected">
53
               </reference>
54
            </visibleWhen>
55
         </command>
56
      </menuContribution>
57
   </extension>   <extension
58
         point="org.eclipse.ui.editors">
59
      <editor
60
            class="org.txm.internal.rcp.editors.InternalViewEditor"
61
            default="false"
62
            icon="icons/functions/InternalView.png"
63
            id="org.txm.internal.rcp.editors.InternalViewEditor"
64
            name="Internal view">
65
      </editor>
66
   </extension>   <extension
67
         point="org.eclipse.core.runtime.adapters">
68
      <factory
69
            adaptableType="org.txm.functions.internal.InternalView"
70
            class="org.txm.internalview.rcp.AdapterFactory">
71
         <adapter
72
               type="org.eclipse.ui.model.IWorkbenchAdapter">
73
         </adapter>
74
      </factory>
75
   </extension>   <extension
76
         point="org.eclipse.ui.preferencePages">
77
   </extension>   <extension
78
         point="org.eclipse.core.expressions.definitions">
79
      <definition
80
            id="OneInternalViewSelected">
81
         <with
82
               variable="selection">
83
            <iterate
84
                  ifEmpty="false"
85
                  operator="and">
86
               <instanceof
87
                     value="org.txm.functions.internal.InternalView">
88
               </instanceof>
89
            </iterate>
90
         </with>
91
      </definition>
92
   </extension>
93
</plugin>