Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Hofer  is currently offline Hofer
Messages: 12
Registered: August 2010
Junior Member
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
Rafael Chaves is currently offline Rafael Chaves
Messages: 161
Registered: July 2009
Senior Member
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: Mon Apr 21 03:12:21 EDT 2014

Powered by FUDForum. Page generated in 0.01864 seconds