]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed component type editor Lift Properties domain setting. 63/263/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 10 Jan 2017 20:32:38 +0000 (22:32 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 10 Jan 2017 20:32:38 +0000 (22:32 +0200)
commitab3be1ad495b373b656697e4f156f6a308f80c98
treef1154b2db3d1ee4d827ad7d73f2a43668efb171f
parentf1b5a0bf9e546ff51e4460140ae529b909a3e188
Fixed component type editor Lift Properties domain setting.

Previously Lift Properties would copy the lifted property relation over
to the user component type as-is which would also leave all the existing
L0.HasDomain relations of the relation in the copy. This can cause
totally unwanted HasDomain definitions in the property relations which
in turn can cause unexpected export-import problems later because of
those unexpected dependencies.

This changes the code to first remove all the existing HasDomain
definitions from the copied property relation and then add the HasDomain
relation to the target component type.

refs #6947

Change-Id: I10090db57ab343abcd35fe93e54265668ecb7e72
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ConfigurationPropertiesSection.java