Revision 89

tmp/org.txm.textsbalance.rcp/plugin.xml (revision 89)
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="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.rcpapplication.toolbartools">
32
         <command
33
               commandId="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.rcpapplication.views.CorporaView">
47
         <command
48
               commandId="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="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.rcpapplication.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>
tmp/org.txm.textsbalance.rcp/.classpath (revision 89)
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
4
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
5
		<accessrules>
6
			<accessrule kind="accessible" pattern="**"/>
7
		</accessrules>
8
	</classpathentry>
9
	<classpathentry kind="src" path="src"/>
10
	<classpathentry kind="output" path="bin"/>
11
</classpath>
tmp/org.txm.textsbalance.rcp/.project (revision 89)
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>org.txm.textsbalance.rcp</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>org.eclipse.jdt.core.javabuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
		<buildCommand>
14
			<name>org.eclipse.pde.ManifestBuilder</name>
15
			<arguments>
16
			</arguments>
17
		</buildCommand>
18
		<buildCommand>
19
			<name>org.eclipse.pde.SchemaBuilder</name>
20
			<arguments>
21
			</arguments>
22
		</buildCommand>
23
	</buildSpec>
24
	<natures>
25
		<nature>org.eclipse.pde.PluginNature</nature>
26
		<nature>org.eclipse.jdt.core.javanature</nature>
27
	</natures>
28
</projectDescription>
tmp/org.txm.textsbalance.rcp/build.properties (revision 89)
1
source.. = src/
2
output.. = bin/
3
bin.includes = plugin.xml,\
4
               META-INF/,\
5
               .,\
6
               icons/,\
7
               OSGI-INF/l10n/bundle.properties

Also available in: Unified diff