Interface LanguageProvider
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
SleighLanguageProvider
NOTE: ALL LanguageProvider CLASSES MUST END IN "LanguageProvider". If not,
the ClassSearcher will not find them.
Service for providing languages.
-
Method Summary
Modifier and TypeMethodDescriptiondefault LanguagegetLanguage(LanguageID languageId) Returns the language with the given name or null if no language has that namegetLanguage(LanguageID languageId, TaskMonitor monitor) Returns the language with the given name or null if no language has that name.Returns a list of language descriptions provided by this providerbooleanbooleanisLanguageLoaded(LanguageID languageId) Returns true if the given language has been successfully loaded
-
Method Details
-
getLanguage
Returns the language with the given name or null if no language has that name- Parameters:
languageId- the name of the language to be retrieved- Returns:
- the
Languagewith the given name or null if not found - Throws:
LanguageNotFoundException- if language instantiation error
-
getLanguage
Returns the language with the given name or null if no language has that name.- Parameters:
languageId- the name of the language to be retrievedmonitor-TaskMonitor- Returns:
- the
Languagewith the given name or null if not found - Throws:
LanguageNotFoundException- if language instantiation error
-
getLanguageDescriptions
LanguageDescription[] getLanguageDescriptions()Returns a list of language descriptions provided by this provider -
hadLoadFailure
boolean hadLoadFailure()- Returns:
- true if one of more languages or language description failed to load properly.
-
isLanguageLoaded
Returns true if the given language has been successfully loaded- Parameters:
languageId- the name of the language to be retrieved- Returns:
- true if the given language has been successfully loaded
-