Skip to content

Cloning an AEI with selector #11

Description

@danieledipompeo

The EcoreUtil.copy returns null when sourceAEI is an instance of an array (i.e., it has a selector).

public void execute() { clonedAEI = (ArchiElemInstance) EcoreUtil.copy(sourceAEI); clonedAEI.setTypeOf(sourceAEI.getTypeOf()); clonedAEI.setInstanceName(sourceAEI.getInstanceName() + "_cloned_" + getRandomCloneIndex()); ((AEmiliaSpecification) this.getModel()).getArchiTypeDecl().getAtDeclaration().getAeiDecl().add(clonedAEI); cloningOutputInteractions(); cloningInputInteractions(); cloningArchitecturalInteraction();.

Check the commit 961edf8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions