RenameReconciliation

In case a morph is getting renamed, this constitues a structural change since all of the references in the derived components need to be updated in turn in order to still be consistent. The reconciliation also makes sure, that the new name itself does not collide with other morphs in any of the derived policies.

Constructor

new RenameReconciliation()

Methods

handleRenaming(affectedPolicy, subSpec) → {PropChangeReconciliation}

Reconciles the definition of a component in response to a renaming of a morph in the visual instance of the component. Renaming derived morphs currently has no effect on the source, since it is prohibited by the halo.

Parameters:
NameTypeDescription
affectedPolicyStylePolicy

The affected policy where we need to adjust the spec.

subSpecObject

The spec to adjust.

Returns:

The reconciliator object.

Type: 
PropChangeReconciliation