Skip to main content

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 09:16 Go to next message
Hofer  is currently offline Hofer Friend
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();

        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 10:07 Go to previous message
Rafael Chaves is currently offline Rafael ChavesFriend
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).


Rafael Chaves
Previous Topic:Get implements interfaces, and subclasses from uml element
Next Topic:Generation in Xpand
Goto Forum:

Current Time: Fri May 25 22:55:12 GMT 2018

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

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

Back to the top