Package com.iizigo.translate.microsoft
Class AzureCognitiveServices
java.lang.Object
com.iizix.translate.microsoft.AzureCognitiveServices
com.iizigo.translate.microsoft.AzureCognitiveServices
- All Implemented Interfaces:
- IEditorTranslator,- ITranslator
The Editor version of the Azure Cognitive Services translator implementation.
- Author:
- Christopher Mindus
- Field Summary- Fields inherited from class com.iizix.translate.microsoft.AzureCognitiveServices- USE_v3
- Constructor SummaryConstructors
- Method Summary- Methods inherited from class com.iizix.translate.microsoft.AzureCognitiveServices- canTranslate, detectLanguage, getLanguageCode, getLanguageDescription, getLanguages, getName, getReadyState, isLanguageHandled, setSubscriptionKey, translate, updateSupportedLanguages- Methods inherited from class java.lang.Object- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait- Methods inherited from interface com.iizix.translate.ITranslator- canTranslate, getLanguageCode, getLanguageDescription, getName, getReadyState, isLanguageHandled, translate, updateSupportedLanguages
- Constructor Details- AzureCognitiveServicespublic AzureCognitiveServices()Constructor.
 
- Method Details- configurepublic boolean configure- (org.eclipse.swt.widgets.Shell shell) Configures the translator with a property container.- Specified by:
- configurein interface- IEditorTranslator
- Parameters:
- shell- The shell.
- Returns:
- true for OK, false for cancel.
 
- setDemopublic static void setDemo()Sets the demo mode.
- deconfigurepublic void deconfigure()Deconfigures the translator.- Specified by:
- deconfigurein interface- ITranslator
- Overrides:
- deconfigurein class- AzureCognitiveServices