| [UML2] Unable to load profile file [message #570667] |
Tue, 27 February 2007 11:00 |
Paul Gribben Messages: 28 Registered: July 2009 |
Junior Member |
|
|
Hello,
I've just started using the eclipse UML2 software (v2.0.2). I have
successfully generated a UML profile and written to file, but cannot now
load that file into a program as a UML profile.
Here's how I'm attempting to load it in:
ResourceSet RESOURCE_SET = new ResourceSetImpl();
Resource resource = RESOURCE_SET.getResource(uri, false);
_profile =
(org.eclipse.uml2.uml.Profile)EcoreUtil.
getObjectByType(resource.getContents(),
UMLPackage.Literals.PACKAGE);
.. null value is always returned by EcoreUtil.getObjectByType(..)
|
|
|
Powered by
FUDForum. Page generated in 0.01672 seconds