-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplugin.xml
207 lines (207 loc) · 8.46 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="4.2"?>
<plugin>
<extension point="org.eclipse.ui.commands">
<category
name="Spoken Compiler"
description="Commands related to the spoken compiler"
id="org.bxg.spokencompiler.eclipse.commands.category" />
<command
categoryId="org.bxg.spokencompiler.eclipse.commands.category"
name="Compile"
description="Compile the current file"
id="org.bxg.spokencompiler.eclipse.commands.compile" />
<command
categoryId="org.bxg.spokencompiler.eclipse.commands.category"
name="Process Audio File"
description="Process the selected wav file as speech input"
id="org.bxg.spokencompiler.eclipse.commands.processAudioFile" />
<command
categoryId="org.bxg.spokencompiler.eclipse.commands.category"
name="Start Dictation"
description="Start Dictating a Program"
id="org.bxg.spokencompiler.eclipse.commands.startDictation" />
<command
categoryId="org.bxg.spokencompiler.eclipse.commands.category"
name="Stop Dictation"
description="Stop Dictating and turn off the microphone"
id="org.bxg.spokencompiler.eclipse.commands.stopDictation" />
<command
categoryId="org.bxg.spokencompiler.eclipse.commands.category"
name="Restart Dictation"
description="Clear the buffer and restart the microphone"
id="org.bxg.spokencompiler.eclipse.commands.restartDictation" />
<command
categoryId="org.bxg.spokencompiler.eclipse.commands.category"
description="Process all wav files found under the selected folder"
id="org.bxg.spokencompiler.eclipse.commands.processAllFiles"
name="Process All Files">
</command>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu id="org.bxg.spokencompiler.eclipse.menus.spokenProgramMenu" label="Spoken Programming">
<command
commandId="org.bxg.spokencompiler.eclipse.commands.startDictation"
id="org.bxg.spokencompiler.eclipse.menus.startDictationMenu"
icon="icons/microphone.png" />
<command
commandId="org.bxg.spokencompiler.eclipse.commands.stopDictation"
id="org.bxg.spokencompiler.eclipse.menus.stopDictationMenu"
icon="icons/microphone-off.png" />
<command
commandId="org.bxg.spokencompiler.eclipse.commands.restartDictation"
id="org.bxg.spokencompiler.eclipse.menus.restartDictationMenu"
icon="icons/restart.png" />
<command
commandId="org.bxg.spokencompiler.eclipse.commands.processAudioFile"
icon="icons/audio.png"
id="org.bxg.spokencompiler.eclipse.menus.processAudioFileMenu">
</command>
<command
commandId="org.bxg.spokencompiler.eclipse.commands.processAllFiles"
id="org.bxg.spokencompiler.eclipse.menus.processAllFilesMenu">
</command>
</menu>
</menuContribution>
<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar id="org.bxg.spokencompiler.eclipse.toolbars.spokenProgram" label="Spoken Programming">
<command
commandId="org.bxg.spokencompiler.eclipse.commands.processAudioFile"
id="org.bxg.spokencompiler.eclipse.menus.processAudioFileMenu"
icon="icons/audio.png" />
<command
commandId="org.bxg.spokencompiler.eclipse.commands.startDictation"
id="org.bxg.spokencompiler.eclipse.toolbars.startDictation"
icon="icons/microphone.png" />
<command
commandId="org.bxg.spokencompiler.eclipse.commands.stopDictation"
icon="icons/microphone-off.png"
id="org.bxg.spokencompiler.eclipse.toolbars.stopDictation">
</command>
<command
commandId="org.bxg.spokencompiler.eclipse.commands.restartDictation"
icon="icons/restart.png"
id="org.bxg.spokencompiler.eclipse.toolbars.restartDictation" />
</toolbar>
</menuContribution>
</extension>
<extension point="org.eclipse.ui.handlers">
<handler
commandId="org.bxg.spokencompiler.eclipse.commands.startDictation"
class="org.bxg.spokencompiler.eclipse.handlers.StartDictation">
<enabledWhen>
<test
property="org.bxg.spokencompiler.eclipse.notListening">
</test>
</enabledWhen>
</handler>
<handler
class="org.bxg.spokencompiler.eclipse.handlers.StopDictation"
commandId="org.bxg.spokencompiler.eclipse.commands.stopDictation">
<enabledWhen>
<test
property="org.bxg.spokencompiler.eclipse.isListening">
</test>
</enabledWhen>
</handler>
<handler
class="org.bxg.spokencompiler.eclipse.handlers.RestartDictation"
commandId="org.bxg.spokencompiler.eclipse.commands.restartDictation">
</handler>
<handler
class="org.bxg.spokencompiler.eclipse.handlers.ProcessAudioFile"
commandId="org.bxg.spokencompiler.eclipse.commands.processAudioFile">
<enabledWhen>
<with
variable="selection">
<and>
<count
value="1">
</count>
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.core.resources.IResource">
<test
property="org.eclipse.core.resources.extension"
value="wav">
</test>
</adapt>
</iterate>
</and>
</with>
</enabledWhen>
</handler>
<handler
class="org.bxg.spokencompiler.eclipse.handlers.ProcessAllFiles"
commandId="org.bxg.spokencompiler.eclipse.commands.processAllFiles">
</handler>
</extension>
<extension
id="SpokenBuilder" name="Spoken Compiler Builder" point="org.eclipse.core.resources.builders">
<builder hasNature="true">
<run
class="org.bxg.spokencompiler.eclipse.builders.SpokenBuilder">
<parameter name="optimize" value="true" />
<parameter name="comment" value="Builder comment" />
</run>
</builder>
</extension>
<extension
id="SpokenBuilderNature"
name="Spoken Compiler Builder"
point="org.eclipse.core.resources.natures">
<builder id="org.bxg.spokencompiler.eclipse.SpokenBuilder" />
<runtime>
<run class="org.bxg.spokencompiler.eclipse.builders.SpokenBuilderNature" />
</runtime>
<requires-nature id="org.eclipse.jdt.core.javanature" />
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<view
id="org.bxg.spokencompiler.eclipse.views.SpokenLangView"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.ProblemView">
</view>
</perspectiveExtension>
</extension>
<extension
point="org.eclipse.ui.views">
<category
id="org.bxg.spokencompiler.eclipse"
name="Spoken Programming">
</category>
<view
allowMultiple="false"
category="org.bxg.spokencompiler.eclipse"
class="org.bxg.spokencompiler.eclipse.views.SpokenLangView"
icon="icons/microphone.png"
id="org.bxg.spokencompiler.eclipse.views.SpokenLangView"
name="Spoken Programming">
</view>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="org.bxg.spokencompiler.eclipse.propertyTester.ListeningTester"
id="org.bxg.spokencompiler.eclipse.listeningTester"
namespace="org.bxg.spokencompiler.eclipse"
properties="isListening, notListening"
type="java.lang.Object">
</propertyTester>
</extension>
<extension
id="spcProblemMarker"
name="Spoken Compiler Problem Marker"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.problemmarker" />
<super type="org.eclipse.core.resources.textmarker" />
<persistent value="true" />
</extension>
</plugin>