Statistics
| Revision:

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

History | View | Annotate | Download (3.8 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.TextsBalanceEditor"
9
            icon="icons/balance.png"
10
            id="org.txm.textsbalance.core.functions.TextsBalance"
11
            name="%editor.name">
12
      </editor>
13
   </extension>
14
   <extension
15
         point="org.eclipse.ui.commands">
16
      <command
17
            defaultHandler="org.txm.textsbalance.rcp.handlers.ComputeTextsBalance"
18
            id="org.txm.textsbalance.rcp.handlers.ComputeTextsBalance"
19
            name="%command.name"
20
            returnTypeId="org.txm.textsbalance.core.functions.TextsBalance">
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.rcp.toolbartools">
33
         <command
34
               commandId="org.txm.textsbalance.rcp.handlers.ComputeTextsBalance"
35
               icon="icons/balance.png"
36
               style="push">
37
            <visibleWhen
38
                  checkEnabled="false">
39
               <reference
40
                     definitionId="OneCorpusSelected">
41
               </reference>
42
            </visibleWhen>
43
         </command>
44
      </menuContribution>
45
      <menuContribution
46
            allPopups="false"
47
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?before=org.txm.rcp.corporaview.text">
48
         <command
49
               commandId="org.txm.textsbalance.rcp.handlers.ComputeTextsBalance"
50
               icon="icons/balance.png"
51
               style="push">
52
            <visibleWhen
53
                  checkEnabled="false">
54
               <reference
55
                     definitionId="OneCorpusSelected">
56
               </reference>
57
            </visibleWhen>
58
         </command>
59
      </menuContribution>
60
      <menuContribution
61
            locationURI="menu:menu.tools?after=menu.tools.separator.misc">
62
         <command
63
               commandId="org.txm.textsbalance.rcp.handlers.ComputeTextsBalance"
64
               icon="icons/balance.png"
65
               style="push">
66
            <visibleWhen
67
                  checkEnabled="false">
68
               <reference
69
                     definitionId="OneCorpusSelected">
70
               </reference>
71
            </visibleWhen>
72
         </command>
73
      </menuContribution>
74
   </extension>
75
   <extension
76
         point="org.eclipse.core.expressions.definitions">
77
      <definition
78
            id="InstanceOfBalanceEditor">
79
         <with
80
               variable="activeEditor">
81
            <instanceof
82
                  value="org.txm.textsbalance.rcp.editors.TextsBalanceEditor">
83
            </instanceof>
84
         </with>
85
      </definition>
86
   </extension>
87
   <extension
88
         point="org.eclipse.ui.preferencePages">
89
      <page
90
            category="org.txm.rcp.preferences.UserPreferencePage"
91
            class="org.txm.textsbalance.rcp.preferences.TextsBalancePreferencePage"
92
            id="org.txm.textsbalance.rcp.preferences.TextsBalancePreferencePage"
93
            name="%page.name">
94
      </page>
95
   </extension>
96
   <extension
97
         point="org.eclipse.core.runtime.adapters">
98
      <factory
99
            adaptableType="org.txm.textsbalance.core.functions.TextsBalance"
100
            class="org.txm.textsbalance.rcp.adapters.TextsBalanceAdapterFactory">
101
         <adapter
102
               type="org.eclipse.ui.model.IWorkbenchAdapter">
103
         </adapter>
104
         <adapter
105
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
106
         </adapter>
107
      </factory>
108
   </extension>
109

    
110
</plugin>