Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Bégaudeau2016-02-02 10:59:22 +0000
committerPierre-Charles David2016-02-02 13:27:10 +0000
commitc9f4009bf4eda1952defb36cdce1bffdfdb624db (patch)
treec0a5414daf781a8d5801ab37404970fd910dec16
parent935544fc9588ebb2dbebcf40676fe4faff4a15a8 (diff)
downloadorg.eclipse.sirius-c9f4009bf4eda1952defb36cdce1bffdfdb624db.tar.gz
org.eclipse.sirius-c9f4009bf4eda1952defb36cdce1bffdfdb624db.tar.xz
org.eclipse.sirius-c9f4009bf4eda1952defb36cdce1bffdfdb624db.zip
[482528] Adds services eGet and eSet
Change-Id: I809f4837ddb3b373915203150f8ad8311fd7877e Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
-rw-r--r--incubation/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/SiriusToolServices.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/incubation/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/SiriusToolServices.java b/incubation/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/SiriusToolServices.java
index 2906eb8511..65d30b5201 100644
--- a/incubation/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/SiriusToolServices.java
+++ b/incubation/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/SiriusToolServices.java
@@ -14,6 +14,7 @@ import java.util.Collection;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.sirius.business.api.helper.task.ICommandTask;
import org.eclipse.sirius.business.api.helper.task.TaskHelper;
@@ -66,4 +67,31 @@ public class SiriusToolServices {
session.getTransactionalEditingDomain().getCommandStack().execute(command);
}
}
+
+ /**
+ * Returns the value of the given structural feature for the given object.
+ *
+ * @param eObject
+ * The EObject
+ * @param eStructuralFeature
+ * The EStructuralFeature
+ * @return The value
+ */
+ public Object eGet(EObject eObject, EStructuralFeature eStructuralFeature) {
+ return eObject.eGet(eStructuralFeature);
+ }
+
+ /**
+ * Sets the value of the given structural feature for the given object.
+ *
+ * @param eObject
+ * The EObject
+ * @param eStructuralFeature
+ * The EStructuralFeature
+ * @param value
+ * The new value
+ */
+ public void eSet(EObject eObject, EStructuralFeature eStructuralFeature, Object value) {
+ eObject.eSet(eStructuralFeature, value);
+ }
}

Back to the top