[245847] reduce warnings
diff --git a/plugins/org.eclipse.actf.ai.voice/META-INF/MANIFEST.MF b/plugins/org.eclipse.actf.ai.voice/META-INF/MANIFEST.MF
index 4eee851..4c971ce 100644
--- a/plugins/org.eclipse.actf.ai.voice/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.actf.ai.voice/META-INF/MANIFEST.MF
@@ -8,7 +8,7 @@
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime
-Eclipse-LazyStart: true
+Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.actf.ai.tts,
org.eclipse.actf.ai.voice,
org.eclipse.actf.ai.voice.preferences.util
diff --git a/plugins/org.eclipse.actf.ai.voice/src/org/eclipse/actf/ai/tts/TTSRegistry.java b/plugins/org.eclipse.actf.ai.voice/src/org/eclipse/actf/ai/tts/TTSRegistry.java
index 3c143b6..158b892 100644
--- a/plugins/org.eclipse.actf.ai.voice/src/org/eclipse/actf/ai/tts/TTSRegistry.java
+++ b/plugins/org.eclipse.actf.ai.voice/src/org/eclipse/actf/ai/tts/TTSRegistry.java
@@ -22,6 +22,8 @@
*/
public class TTSRegistry {
+ private static final String PRIORITY = "priority"; //$NON-NLS-1$
+
private static final String TTS_EXTENSION = "org.eclipse.actf.ai.voice.TTSEngine"; //$NON-NLS-1$
private static final String DEFAULT_TTS = "org.eclipse.actf.ai.tts.sapi.engine.SapiVoice"; //$NON-NLS-1$
@@ -42,8 +44,8 @@
Arrays.sort(ttsElements, new Comparator<IConfigurationElement>() {
public int compare(IConfigurationElement c1,
IConfigurationElement c2) {
- String s1 = c1.getAttribute("priority");
- String s2 = c2.getAttribute("priority");
+ String s1 = c1.getAttribute(PRIORITY);
+ String s2 = c2.getAttribute(PRIORITY);
int i1 = 0;
int i2 = 0;
try {
@@ -62,7 +64,7 @@
for (int i = 0; i < ttsElements.length; i++) {
try {
ITTSEngine test = (ITTSEngine) ttsElements[i]
- .createExecutableExtension("class");
+ .createExecutableExtension("class"); //$NON-NLS-1$
if (test.isAvailable()) {
availables[i] = true;
INSTANCES[i] = test;
@@ -101,7 +103,7 @@
public static String getDefaultEngine() {
for (int i = 0; i < ttsElements.length; i++) {
if (availables[i]) {
- return ttsElements[i].getAttribute("id");
+ return ttsElements[i].getAttribute("id"); //$NON-NLS-1$
}
}
return DEFAULT_TTS;
@@ -119,7 +121,7 @@
if (availables[i])
labelAndIds[i][1] = ttsElements[i].getAttribute("id"); //$NON-NLS-1$
else
- labelAndIds[i][1] = "";
+ labelAndIds[i][1] = ""; //$NON-NLS-1$
}
return labelAndIds;
}
diff --git a/plugins/org.eclipse.actf.ai.voice/src/org/eclipse/actf/ai/voice/preferences/VoicePreferencePage.java b/plugins/org.eclipse.actf.ai.voice/src/org/eclipse/actf/ai/voice/preferences/VoicePreferencePage.java
index 6dfe9ff..81bc989 100644
--- a/plugins/org.eclipse.actf.ai.voice/src/org/eclipse/actf/ai/voice/preferences/VoicePreferencePage.java
+++ b/plugins/org.eclipse.actf.ai.voice/src/org/eclipse/actf/ai/voice/preferences/VoicePreferencePage.java
@@ -47,7 +47,7 @@
final RadioGroupFieldEditor rgfe;
String[][] labelAndIds = TTSRegistry.getLabelAndIds();
- addField(rgfe = new RadioGroupFieldEditor(IVoice.PREF_ENGINE, Messages.voice_engine, 1, labelAndIds, //$NON-NLS-1$
+ addField(rgfe = new RadioGroupFieldEditor(IVoice.PREF_ENGINE, Messages.voice_engine, 1, labelAndIds,
getFieldEditorParent()));
Composite c = rgfe.getRadioBoxControl(getFieldEditorParent());
for (int i = 0; i < labelAndIds.length; i++) {