I've got an error message in Eclipse:

The type org.eclipse.emf.edit.domain.EditingDomain cannot be resolved.
It is indirectly referenced from required .class files

I've got it when I tried to use the EMF DiffMerge plugin on my EMF model project. I loaded an instance model of my project from an EMF persisted XMI file to a Resource and tried to gave it to EMF DiffMerge like this (the error is given on the last line):

ResourceSet resSet = new ResourceSetImpl();

Resource resource = resSet.getResource(URI.createURI("grafok/MyGraph.xmi"),true);
IEditableModelScope targetScope = new FragmentedModelScope(resource);

Can you help guys what's the problem?

Anyway I tried cleaning the project and remove the JRE library and add it again in the properties/Java build path, as advised in another similar post but these didnt help.

1

There are 1 best solutions below

0
sali333 On

You need to add org.eclipse.emf.transaction to the dependencies of your project. That will solve you problem.