[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.mdt.uml2.uml] Re: Problem with XMI import from case (Enterprise Architect)

Peter,

I'm not sure where to find it in the docs, but you'll need to use the specialized resource implementations in org.eclipse.uml2.uml.resource.  For example, I believe that XMI2UMLResource.Factory.INSTANCE should be registered to handle .xmi files because I think that's what the editor is using.  And UMLResource.Factory.INSTANCE should be used for *.uml files...


Peter Jackson wrote:
If I name your sample file abc.xmi, I can use "Open With->UML Model 
Editor" and it loads with errors complaining about the bad enum values 
but this version with that problem corrected loads fine:
      
positive, but I want it to be loaded by my class, ideally I would like to 
run eclipse headless..
    
I didn't make myself clear. It loads into UML Model editor, but doest not 
load when I try to load it in my class
as I presented in prev post.