Community
Participate
Working Groups
Steps to reproduce: . Take the attached reproduction case of Bug 465661 . Open the VSM, check the mapping structure: freeFormByImport mapping reuse the ListRegions and FreeFormRegions mappings. . Open the new Diag with VStack diagram -> you see a compartimented container . Activate the FreeFormByImport layer -> you now have a container with sub containers/lists . Modify the VSM: emtpy the resued mappings of FreeFormByImport mapping and save . The diagram has been updated : the container is empty BUT it should not because the hide sub mappings attribut is equals to false.
See org.eclipse.sirius.diagram.business.internal.componentization.mappings.DiagramMappingsManagerImpl.getContainerMappings(DNodeContainer, boolean)
MultipleMappingImportTests should be updated
Additional issue: hstack import listByImport import FreeFromByImport import Compartment_1 Each mapping is defined in its own layer, if all layers are enabled, I get the following container mapping order (DDiagramSynchronizer l380): hStack, ListByImport, FreeFormByImport, Compartment_1 as expected. If I enable only the Freeform and the HStack layers, I get FreeFormByImport, hStack, Compartment_1 which is not the order I expected
Actually,the "Hide Sub Mappings" feature is really unclear. Indeed, the current behavior is not the one expected: when the hide sub mappings is checked, the imported mapping is hidden. For instance, a mapping A displays EClases as gray containers. The mapping B import the mapping A and displays only abstract classes as yellow containers. If the "hide sub mappings" is checked, classes which are not abstract will be hidden from diagram.