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 11:00
Paul Gribben is currently offline 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(..)
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 18 04:20:31 EDT 2014

Powered by FUDForum. Page generated in 0.01419 seconds