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

resolving the finding of unreachable states in the case of library hierarchical components

refs 1732
parent dec853fe
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,6 @@ import org.fortiss.tooling.kernel.model.ILibraryPackage;
import org.fortiss.tooling.kernel.model.INamedElement;
import org.fortiss.tooling.kernel.service.ILibraryService;
import org.fortiss.tooling.kernel.service.IPersistencyService;
import org.fortiss.tooling.kernel.utils.UniqueIDUtils;
/**
* Higher level {@link ILibraryService} for {@link IModelElement} objects.
......@@ -46,7 +45,7 @@ import org.fortiss.tooling.kernel.utils.UniqueIDUtils;
* @author ratiu
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating GREEN Hash: 638CDEFFBE9E8609A358B268BB1D97AC
* @ConQAT.Rating YELLOW Hash: C15C1F9A1E6D14A61EFD940B457B3AF9
*/
public class ModelElementLibraryService implements ILibraryService {
......@@ -142,9 +141,6 @@ public class ModelElementLibraryService implements ILibraryService {
IHierarchicElement container = (IHierarchicElement)elementRef.eContainer();
container.getContainedElements().remove(elementRef);
// create new IDs
UniqueIDUtils.prepareUniqueID(wrapped, container);
// preserve the ID of the reference
((IIdLabeled)wrapped).setId(((IIdLabeled)elementRef).getId());
......
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