Statistics
| Revision:

root / tmp / org.txm.properties.rcp / plugin.xml @ 2212

History | View | Annotate | Download (3.3 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.preferencePages">
6
      <page
7
            category="org.txm.rcp.preferences.UserPreferencePage"
8
            class="org.txm.properties.rcp.preferences.PropertiesPreferencePage"
9
            id="org.txm.properties.rcp.preferences.PropertiesPreferencePage"
10
            name="%command.name">
11
      </page>
12
   </extension>
13
   <extension
14
         point="org.eclipse.ui.commands">
15
      <command
16
            defaultHandler="org.txm.properties.rcp.handlers.ComputeProperties"
17
            id="org.txm.properties.rcp.handlers.ComputeProperties"
18
            name="%command.name"
19
            returnTypeId="org.txm.properties.core.functions.Properties">
20
      </command>
21
   </extension>
22
   <extension
23
         point="org.eclipse.ui.editors">
24
      <editor
25
            class="org.txm.properties.rcp.editors.PropertiesEditor"
26
            default="false"
27
            icon="icons/functions/properties.png"
28
            id="org.txm.properties.rcp.editors.PropertiesEditor"
29
            name="%command.name">
30
      </editor>
31
   </extension>
32
   <extension
33
         point="org.eclipse.core.runtime.adapters">
34
      <factory
35
            adaptableType="org.txm.properties.core.functions.Properties"
36
            class="org.txm.properties.rcp.adapters.PropertiesAdapterFactory">
37
         <adapter
38
               type="org.eclipse.ui.model.IWorkbenchAdapter">
39
         </adapter>
40
         <adapter
41
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
42
         </adapter>
43
      </factory>
44
   </extension>
45
   <extension
46
         point="org.eclipse.ui.menus">
47
      <menuContribution
48
            locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.edition.rcp.handlers.OpenEdition">
49
         <command
50
               commandId="org.txm.properties.rcp.handlers.ComputeProperties"
51
               icon="icons/functions/properties.png"
52
               style="push"
53
               tooltip="%command.name">
54
            <visibleWhen
55
                  checkEnabled="false">
56
               <or>
57
                  <reference
58
                        definitionId="OneCorpusSelected">
59
                  </reference>
60
               </or>
61
            </visibleWhen>
62
         </command>
63
      </menuContribution>
64
      <menuContribution
65
            locationURI="menu:menu.corpus?after=menu.corpus.read">
66
         <command
67
               commandId="org.txm.properties.rcp.handlers.ComputeProperties"
68
               icon="icons/functions/properties.png"
69
               style="push">
70
            <visibleWhen
71
                  checkEnabled="false">
72
               <reference
73
                     definitionId="OneCorpusSelected">
74
               </reference>
75
            </visibleWhen>
76
         </command>
77
      </menuContribution>
78
      <menuContribution
79
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.read">
80
         <command
81
               commandId="org.txm.properties.rcp.handlers.ComputeProperties"
82
               icon="icons/functions/properties.png"
83
               style="push">
84
            <visibleWhen
85
                  checkEnabled="false">
86
               <reference
87
                     definitionId="OneCorpusSelected">
88
               </reference>
89
            </visibleWhen>
90
         </command>
91
      </menuContribution>
92
   </extension>
93
</plugin>