Statistics
| Revision:

root / tmp / org.txm.textsbalance.rcp / plugin.xml @ 49

History | View | Annotate | Download (3.6 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4

    
5
   <extension
6
         point="org.eclipse.ui.editors">
7
      <editor
8
            class="org.txm.textsbalance.rcp.editors.BalanceEditor"
9
            icon="icons/balance.png"
10
            id="org.txm.textsbalance.core.functions.TextsBalance"
11
            name="Texts Balance">
12
      </editor>
13
   </extension>
14
   <extension
15
         point="org.eclipse.ui.commands">
16
      <command
17
            defaultHandler="org.txm.textsbalance.rcp.handlers.ComputeBalance"
18
            description="Texts balance"
19
            id="ComputeBalance"
20
            name="Texts balance">
21
         <commandParameter
22
               id="TextsBalance.createNewEditor"
23
               name="%commandParameter.name"
24
               optional="true">
25
         </commandParameter>
26
      </command>
27
   </extension>
28
   <extension
29
         point="org.eclipse.ui.menus">
30
      <menuContribution
31
            allPopups="false"
32
            locationURI="toolbar:org.txm.rcpapplication.toolbartools">
33
         <command
34
               commandId="ComputeBalance"
35
               icon="icons/balance.png"
36
               label="Texts balance"
37
               style="push"
38
               tooltip="%command.tooltip">
39
            <visibleWhen
40
                  checkEnabled="false">
41
               <reference
42
                     definitionId="OneCorpusSelected">
43
               </reference>
44
            </visibleWhen>
45
         </command>
46
      </menuContribution>
47
      <menuContribution
48
            allPopups="false"
49
            locationURI="popup:org.txm.rcpapplication.views.CorporaView">
50
         <command
51
               commandId="ComputeBalance"
52
               icon="icons/balance.png"
53
               label="Texts balance"
54
               style="push"
55
               tooltip="%command.tooltip.0">
56
            <visibleWhen
57
                  checkEnabled="false">
58
               <reference
59
                     definitionId="OneCorpusSelected">
60
               </reference>
61
            </visibleWhen>
62
         </command>
63
      </menuContribution>
64
      <menuContribution
65
            locationURI="menu:menu.tools">
66
         <command
67
               commandId="ComputeBalance"
68
               icon="icons/balance.png"
69
               label="Texts balance"
70
               style="push"
71
               tooltip="%command.tooltip.1">
72
            <visibleWhen
73
                  checkEnabled="false">
74
               <reference
75
                     definitionId="OneCorpusSelected">
76
               </reference>
77
            </visibleWhen>
78
         </command>
79
      </menuContribution>
80
   </extension>
81
   <extension
82
         point="org.eclipse.core.expressions.definitions">
83
      <definition
84
            id="InstanceOfBalanceEditor">
85
         <with
86
               variable="activeEditor">
87
            <instanceof
88
                  value="org.txm.textsbalance.rcp.editors.BalanceEditor">
89
            </instanceof>
90
         </with>
91
      </definition>
92
   </extension>
93
   <extension
94
         point="org.eclipse.ui.preferencePages">
95
      <page
96
            category="org.txm.rcpapplication.preferences.UserPreferencePage"
97
            class="org.txm.textsbalance.rcp.preferences.TextsBalancePreferencePage"
98
            id="org.txm.rcp.textsbalance.preferences.TextsBalancePreferencePage"
99
            name="Texts balance">
100
      </page>
101
   </extension>
102
   <extension
103
         point="org.eclipse.core.runtime.adapters">
104
      <factory
105
            adaptableType="org.txm.textsbalance.core.functions.TextsBalance"
106
            class="org.txm.textsbalance.rcp.adapters.AdapterFactory">
107
         <adapter
108
               type="org.eclipse.ui.model.IWorkbenchAdapter">
109
         </adapter>
110
      </factory>
111
   </extension>
112

    
113
</plugin>