Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » [UML2] Unable to load profile file
[UML2] Unable to load profile file [message #570667] Tue, 27 February 2007 16:00
Paul Gribben is currently offline Paul GribbenFriend
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(..)
Previous Topic:[Announce] A Proposal and Prototype for an Eclipse Model Registry
Next Topic:[UML2] Unable to load profile file
Goto Forum:
  


Current Time: Fri Apr 26 16:56:27 GMT 2024

Powered by FUDForum. Page generated in 0.03251 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top