From 279c039e46a5bd24a18804a22ef407c41f3a579a Mon Sep 17 00:00:00 2001
From: Wim Jongman
Date: Mon, 18 Mar 2013 16:11:48 +0100
Subject: Bug 403640 fixed javadoc
https://bugs.eclipse.org/bugs/show_bug.cgi?id=403640
---
.../emf/ui/common/component/AbstractComponentEditor.java | 11 +++++++++++
1 file changed, 11 insertions(+)
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 string
using the current
+ * {@link AbstractTranslationProvider} and locale
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);
}
--
cgit v1.2.3