Statistics
| Revision:

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

History | View | Annotate | Download (3.6 kB)

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