Skip to content
Snippets Groups Projects
Commit ca5984ee authored by Daniel Ratiu's avatar Daniel Ratiu
Browse files

refs 1724
parent 5bd9e4b4
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ import org.fortiss.tooling.kernel.service.ILibraryService; ...@@ -44,6 +44,7 @@ import org.fortiss.tooling.kernel.service.ILibraryService;
import org.fortiss.tooling.kernel.service.IPersistencyService; import org.fortiss.tooling.kernel.service.IPersistencyService;
import org.fortiss.tooling.kernel.service.IPrototypeService; import org.fortiss.tooling.kernel.service.IPrototypeService;
import org.fortiss.tooling.kernel.service.base.EObjectAwareServiceBase; import org.fortiss.tooling.kernel.service.base.EObjectAwareServiceBase;
import org.fortiss.tooling.kernel.utils.UniqueIDUtils;
/** /**
* This class implements the {@link ILibraryService} interface. * This class implements the {@link ILibraryService} interface.
...@@ -206,6 +207,9 @@ public class LibraryService extends EObjectAwareServiceBase<ILibraryElementHandl ...@@ -206,6 +207,9 @@ public class LibraryService extends EObjectAwareServiceBase<ILibraryElementHandl
ILibraryService.INSTANCE.setDirty(ref, false); ILibraryService.INSTANCE.setDirty(ref, false);
EObject copy = EcoreUtil.copy(lc.getWrappedElement()); EObject copy = EcoreUtil.copy(lc.getWrappedElement());
ref.setLibraryElementShadow(copy); ref.setLibraryElementShadow(copy);
// create new IDs
UniqueIDUtils.prepareUniqueID(copy, ref);
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment