Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Scout/Concepts/Text Provider Service"

(See Also)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ScoutPage|cat=Shared}}
+
The Scout documentation has been moved to https://eclipsescout.github.io/.
 
+
Text Provider Services are services responsible to provide localization for texts in the user interface. A typical application contains a such service contributed by the {{ScoutLink|Concepts|Shared Plug-In|Shared Plug-In}}.
+
 
+
* implements: {{ScoutJavadoc|ITextProviderService|I}}
+
* extends: {{ScoutJavadoc|AbstractDynamicNlsTextProviderService|C}}
+
 
+
== Description ==
+
{{note|TODO|Add a description}}
+
 
+
If your implementation of the service extends <code>AbstractDynamicNlsTextProviderService</code> you need to provide the path to your translations properties file by overwriting the getter getDynamicNlsBaseName.
+
<source lang="java">
+
  @Override
+
  protected String getDynamicNlsBaseName() {
+
    return "resources.texts.Texts";
+
  }
+
</source>
+
 
+
== See Also ==
+
* {{ScoutLink|Concepts|Texts}}
+
* {{ScoutLink|Concepts|Shared Plug-In|Shared Plug-In}}
+
* {{ScoutLink|SDK|NLS Editor}}
+

Latest revision as of 05:29, 14 March 2024

The Scout documentation has been moved to https://eclipsescout.github.io/.

Back to the top