Skip to main content



      Home
Home » Modeling » UML2 » The type org.eclipse.emf.ecore.EModelElement cannot be resolved.(EModelElement cannot be resolved)
The type org.eclipse.emf.ecore.EModelElement cannot be resolved. [message #663477] Tue, 05 April 2011 05:16 Go to next message
Eclipse UserFriend
i'm working with Eclipse Modeling Tools Version: Helios Service Release 2 Build id: 20110218-0911 and i try to implement the examples shown in "Getting Started with UML2". but using this code

    protected static Model createModel(String name) {
        Model model = UMLFactory.eINSTANCE.createModel();
        model.setName(name);

        out("Model '" + model.getQualifiedName() + "' created.");

        return model;
    }


in the line with model.setName(name) i got an error saying "The type org.eclipse.emf.ecore.EModelElement cannot be resolved. It is indirectly referenced from required .class files".

i couldn't find any jar to get rid of this error. any suggestions?
Re: The type org.eclipse.emf.ecore.EModelElement cannot be resolved. [message #663483 is a reply to message #663477] Tue, 05 April 2011 06:07 Go to previous message
Eclipse UserFriend
Is this for a regular Java project or a plugin project?

If it is the former, and you just added the UML2 jar to your project buildpath, that means you need to include (at least) org.eclipse.emf.ecore (but possibly others as well, such as org.eclipse.emf.ecore.xmi and org.eclipse.emf.mapping.ecore2xml).

HTH,

Rafael Chaves
http://abstratt.com/blog
Previous Topic:Get implements interfaces, and subclasses from uml element
Next Topic:Generation in Xpand
Goto Forum:
  


Current Time: Tue Jul 22 22:42:52 EDT 2025

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

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

Back to the top