| Summary: | CMOF file cannot be read after edit | ||
|---|---|---|---|
| Product: | [Modeling] MDT.UML2 | Reporter: | Ed Willink <ed> |
| Component: | Core | Assignee: | UML2 Inbox <mdt-uml2-inbox> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 4.0.0 | ||
| Target Milestone: | M5 | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
|
Description
Ed Willink
Hmm, odd that I didn't encounter this while testing... Actually, the code is already there:
@Override
protected void processElement(String name, String prefix, String localName) {
String extender = attribs
.getValue(EMOFExtendedMetaData.XMI_EXTENDER_ATTRIBUTE);
if (EMOFExtendedMetaData.EXTENSION.equals(localName)
&& XMI2UMLResource.XMI_2_1_NS_URI.equals(helper.getURI(prefix))
&& attribs != null
&& (UML212UMLResource.UML_METAMODEL_NS_URI.equals(extender) || UML302UMLResource.UML_METAMODEL_NS_URI
.equals(extender)) || UMLPackage.eNS_URI.equals(extender)) {
types.push(UML_EXTENSION_TYPE);
} else {
super.processElement(name, prefix, localName);
}
}
Are you sure you used the latest build?
Doh, there was a typo. Fix committed and pushed. Another integration build will be published soon. The integration build is now available. (In reply to comment #2) > Are you sure you used the latest build? I think I used a CVS ergonomic and Synchronized, which didn't do a Fetch. I was still using the 8-Dec [366083] commit state in my Workspace after the latest I-build failed because of the typo. Might I suggest an isUMLMetamodelNSuri() helper for this growing list; UML 2.5 coming shortly. Also more readable and debuggable. Perhaps even an explicitly extendable list to facilitate UML developers and customizers. I'll consider adding a convenience utility if/when we migrate to UML 2.5. |