Updated to version 3.0.0 (namespace registry, model version)
diff --git a/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/utils/AmaltheaNamespaceRegistry.java b/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/utils/AmaltheaNamespaceRegistry.java index a2e70c0..f9f2095 100644 --- a/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/utils/AmaltheaNamespaceRegistry.java +++ b/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/utils/AmaltheaNamespaceRegistry.java
@@ -125,6 +125,10 @@ AmaltheaNamespace ns220 = new AmaltheaNamespace(); ns220.registerMapping("am", "http://app4mc.eclipse.org/amalthea/2.2.0"); REGISTRY.put(ModelVersion.VERSION_220.getVersion(), ns220); + + AmaltheaNamespace ns300 = new AmaltheaNamespace(); + ns300.registerMapping("am", "http://app4mc.eclipse.org/amalthea/3.0.0"); + REGISTRY.put(ModelVersion.VERSION_300.getVersion(), ns300); } /** @@ -204,6 +208,9 @@ else if (isNamespaceAvailable(ModelVersion.VERSION_220, namespace)) { result = ModelVersion.VERSION_220; } + else if (isNamespaceAvailable(ModelVersion.VERSION_300, namespace)) { + result = ModelVersion.VERSION_300; + } return result; }
diff --git a/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/utils/ModelVersion.java b/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/utils/ModelVersion.java index 3ca87a9..4d0731d 100644 --- a/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/utils/ModelVersion.java +++ b/plugins/org.eclipse.app4mc.amalthea.converters.common/src/org/eclipse/app4mc/amalthea/converters/common/utils/ModelVersion.java
@@ -45,12 +45,16 @@ VERSION_097("0.9.7"), VERSION_098("0.9.8"), VERSION_099("0.9.9"), + VERSION_100("1.0.0"), VERSION_110("1.1.0"), VERSION_120("1.2.0"), + VERSION_200("2.0.0"), VERSION_210("2.1.0"), - VERSION_220("2.2.0"); + VERSION_220("2.2.0"), + + VERSION_300("3.0.0"); private final String value;