Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMartin Taal2012-11-02 07:12:05 +0000
committerMartin Taal2012-11-02 07:12:05 +0000
commitfc9330d9ae331abe2351b056d5ab6881b3c4ccdb (patch)
treeea9e230528971f85931455f72dd6184f90365e7f /core
parent82b64c8b5966329827a65c03ac20488cd39fbca9 (diff)
downloadorg.eclipse.emf.teneo-fc9330d9ae331abe2351b056d5ab6881b3c4ccdb.tar.gz
org.eclipse.emf.teneo-fc9330d9ae331abe2351b056d5ab6881b3c4ccdb.tar.xz
org.eclipse.emf.teneo-fc9330d9ae331abe2351b056d5ab6881b3c4ccdb.zip
Added support for mixed content and auditing
Diffstat (limited to 'core')
-rwxr-xr-xcore/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/extension/ExtensionUtil.java3
-rwxr-xr-xcore/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/util/StoreUtil.java5
2 files changed, 5 insertions, 3 deletions
diff --git a/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/extension/ExtensionUtil.java b/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/extension/ExtensionUtil.java
index e873a1f52..f1c4b0ca0 100755
--- a/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/extension/ExtensionUtil.java
+++ b/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/extension/ExtensionUtil.java
@@ -130,6 +130,9 @@ public class ExtensionUtil {
// from the hibernate plugin
em.registerExtension(createExtension(
+"org.eclipse.emf.teneo.hibernate.auditing.AuditHandler",
+ "org.eclipse.emf.teneo.hibernate.auditing.AuditHandler", false));
+ em.registerExtension(createExtension(
"org.eclipse.emf.teneo.hibernate.auditing.AuditProcessHandler",
"org.eclipse.emf.teneo.hibernate.auditing.AuditProcessHandler", false));
em.registerExtension(createExtension(
diff --git a/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/util/StoreUtil.java b/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/util/StoreUtil.java
index 78a0f97f3..12ccecd72 100755
--- a/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/util/StoreUtil.java
+++ b/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/util/StoreUtil.java
@@ -379,7 +379,7 @@ public class StoreUtil {
}
/** Translates a string to a eclass */
- public static EClass stringToEClass(String strid) {
+ public static EClass stringToEClass(EPackage.Registry registry, String strid) {
int lastIndex = strid.lastIndexOf(PATH_SEPARATOR);
if (lastIndex == -1) {
@@ -389,8 +389,7 @@ public class StoreUtil {
final String nsuri = strid.substring(0, lastIndex);
final String eclassName = strid.substring(lastIndex + 1);
- final EPackage epack = PackageRegistryProvider.getInstance().getPackageRegistry()
- .getEPackage(nsuri);
+ final EPackage epack = registry.getEPackage(nsuri);
if (epack == null) {
throw new TeneoException("The strid " + strid + " and nsuri: " + nsuri
+ " does not resolve to an epackage");

Back to the top