Statistics
| Revision:

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

History | View | Annotate | Download (3.5 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
            id="org.txm.textsbalance.rcp.handlers.ComputeBalance"
19
            name="Texts balance">
20
         <commandParameter
21
               id="TextsBalance.createNewEditor"
22
               name="%commandParameter.name"
23
               optional="true">
24
         </commandParameter>
25
      </command>
26
   </extension>
27
   <extension
28
         point="org.eclipse.ui.menus">
29
      <menuContribution
30
            allPopups="false"
31
            locationURI="toolbar:org.txm.rcp.toolbartools?after=ComputeWordCloud">
32
         <command
33
               commandId="org.txm.textsbalance.rcp.handlers.ComputeBalance"
34
               icon="icons/balance.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
            allPopups="false"
46
            locationURI="popup:org.txm.rcp.views.CorporaView">
47
         <command
48
               commandId="org.txm.textsbalance.rcp.handlers.ComputeBalance"
49
               icon="icons/balance.png"
50
               style="push">
51
            <visibleWhen
52
                  checkEnabled="false">
53
               <reference
54
                     definitionId="OneCorpusSelected">
55
               </reference>
56
            </visibleWhen>
57
         </command>
58
      </menuContribution>
59
      <menuContribution
60
            locationURI="menu:menu.tools">
61
         <command
62
               commandId="org.txm.textsbalance.rcp.handlers.ComputeBalance"
63
               icon="icons/balance.png"
64
               style="push">
65
            <visibleWhen
66
                  checkEnabled="false">
67
               <reference
68
                     definitionId="OneCorpusSelected">
69
               </reference>
70
            </visibleWhen>
71
         </command>
72
      </menuContribution>
73
   </extension>
74
   <extension
75
         point="org.eclipse.core.expressions.definitions">
76
      <definition
77
            id="InstanceOfBalanceEditor">
78
         <with
79
               variable="activeEditor">
80
            <instanceof
81
                  value="org.txm.textsbalance.rcp.editors.BalanceEditor">
82
            </instanceof>
83
         </with>
84
      </definition>
85
   </extension>
86
   <extension
87
         point="org.eclipse.ui.preferencePages">
88
      <page
89
            category="org.txm.rcp.preferences.UserPreferencePage"
90
            class="org.txm.textsbalance.rcp.preferences.TextsBalancePreferencePage"
91
            id="org.txm.rcp.textsbalance.preferences.TextsBalancePreferencePage"
92
            name="Texts balance">
93
      </page>
94
   </extension>
95
   <extension
96
         point="org.eclipse.core.runtime.adapters">
97
      <factory
98
            adaptableType="org.txm.textsbalance.core.functions.TextsBalance"
99
            class="org.txm.textsbalance.rcp.adapters.TextsBalanceAdapterFactory">
100
         <adapter
101
               type="org.eclipse.ui.model.IWorkbenchAdapter">
102
         </adapter>
103
      </factory>
104
   </extension>
105

    
106
</plugin>