Cut-pasting in Model Browser does not find unique names for pasted resources
Example: Cut and paste SCLMain to another model which already has SCLMain. The target model will have two resources with the same name.
The problem is here:
org.simantics.db.layer0.adapter.impl.DefaultPasteHandler.pasteFromClipboard(WriteGraph, SimanticsClipboard, PasteEventHandler)
Layer0 L0 = Layer0.getInstance(graph);
for(Resource r : cut) {
graph.deny(r, L0.PartOf);
graph.claim(resource, L0.ConsistsOf, L0.PartOf, r);
result.add(r);
}
Edited by Jussi Koskela