Bug 528771 - [Papyrus][ExpansionModel] ExpansionModel doesn't work with Show/Hide Contents
Summary: [Papyrus][ExpansionModel] ExpansionModel doesn't work with Show/Hide Contents
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Others (show other bugs)
Version: 3.2.0   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: Confirmed
Keywords:
Depends on: 528773
Blocks:
  Show dependency tree
 
Reported: 2017-12-14 08:13 EST by Vincent Lorenzo CLA
Modified: 2019-02-15 12:03 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2017-12-14 08:13:04 EST
The expansion model doesn't work with the Show/Hide Contents. 
ExpansionModel allows to declare new compartment on existing element and describe the allowed elements for these new compartment, but its ViewProvider (org.eclipse.papyrus.infra.gmfdiag.expansion.expansionmodel.providers.ExpandViewProvider) is not able to provide 
valuable createNode method when the semanticHint of the view to create is null. 

We get a semanticHint==null by the ShowHideContentsAction (org.eclipse.papyrus.uml.diagram.common.actions.ShowHideContentsAction.CompartmentEditPartRepresentation.canContain(Element)).