Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Jongman2013-03-18 15:11:48 +0000
committerWim Jongman2013-03-18 15:11:48 +0000
commit279c039e46a5bd24a18804a22ef407c41f3a579a (patch)
tree1587fdaf62bfee2ccfdadd5261affb7a206fc22c
parent6f8fdfab66b65747048accc9c8236975f372a5b7 (diff)
downloadorg.eclipse.e4.tools-279c039e46a5bd24a18804a22ef407c41f3a579a.tar.gz
org.eclipse.e4.tools-279c039e46a5bd24a18804a22ef407c41f3a579a.tar.xz
org.eclipse.e4.tools-279c039e46a5bd24a18804a22ef407c41f3a579a.zip
Bug 403640 fixed javadocI20130318-1630
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.java11
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);
}

Back to the top