Community
Participate
Working Groups
While attempting to develop an examples plugin that contributes the UML 2.5 Beta model, I find that I cannot contribute the new content type and so the usage of xmlns:mofext="http://www.omg.org/spec/MOF/20110701" fails. Surely the hardwarired contents are for standalone usage. Eclipse usage should exploit the org.eclipse.core.contenttype.contentTypes.
Can you be more specific about what you think the problem is here? UMLUtil#init(ResourceSet) registers resource factories against content types that have been declared via the 'org.eclipse.core.contenttype.contentTypes' extension point; to add a new content type, you would need to register it via your own extension and then register a resource factory against that content type... are you expecting the utility to automagically do this for you?
(In reply to comment #1) > are you expecting the utility to automagically do this for you? Er .. yes. I was forgetting the nightmarish complexity of the partial registrations. There appears to be a missing extensibility to define UMLUtil's contentType2resourceFactory; perhaps the content-type declarations should have a ResourceFactory class. I've concluded that it is impossible to extend MDT/UML2 to redirect a new namespace without modifying the core code. uri-mapping doesn't work for nsURIs and cont registrations are not full extensible.
Well, this particular utility is intentionally opinionated about what it registers - the set of content types needed to work with the versions of UML, MOF, and XMI that that supported by UML2. I don't see the need to make it extensible.