diff options
author | Wim Jongman | 2013-03-18 15:11:48 +0000 |
---|---|---|
committer | Wim Jongman | 2013-03-18 15:11:48 +0000 |
commit | 2808885da2dea5c7a2cc9c7206e7883e16b92bba (patch) | |
tree | 60e5d98d447f11e10f4696731d13ed75fbadc517 | |
parent | c223dcbe8e8375ece2421408277a5b4274e20c9c (diff) | |
download | eclipse.platform.ui.tools-2808885da2dea5c7a2cc9c7206e7883e16b92bba.tar.gz eclipse.platform.ui.tools-2808885da2dea5c7a2cc9c7206e7883e16b92bba.tar.xz eclipse.platform.ui.tools-2808885da2dea5c7a2cc9c7206e7883e16b92bba.zip |
Bug 403640 fixed javadoc
https://bugs.eclipse.org/bugs/show_bug.cgi?id=403640
-rw-r--r-- | bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/common/component/AbstractComponentEditor.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/common/component/AbstractComponentEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/common/component/AbstractComponentEditor.java index b0b45a14..191b2ad6 100644 --- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/common/component/AbstractComponentEditor.java +++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/common/component/AbstractComponentEditor.java @@ -26,6 +26,7 @@ import org.eclipse.e4.tools.emf.ui.internal.common.properties.ProjectOSGiTransla import org.eclipse.e4.tools.services.IClipboardService.Handler; import org.eclipse.e4.tools.services.IResourcePool; import org.eclipse.e4.tools.services.Translation; +import org.eclipse.e4.tools.services.impl.AbstractTranslationProvider; import org.eclipse.e4.ui.model.application.MApplicationElement; import org.eclipse.e4.ui.model.application.ui.MUILabel; import org.eclipse.emf.databinding.FeaturePath; @@ -132,6 +133,16 @@ public abstract class AbstractComponentEditor { return Collections.emptyList(); } + /** + * Translates an input <code>string</code> using the current + * {@link AbstractTranslationProvider} and <code>locale</code> from the + * {@link TranslationService}. + * + * @param string + * the string to translate, may not be null. + * @return the translated string or the input string if it could not be + * translated. + */ public String translate(String string) { return ControlFactory.tr(translationProvider, locale, string); } |