Skip to content

[EEF] Properties View for PrimitiveType and Variable are broken

Bugzilla Link 582168
Status NEW
Importance P3 major
Reported Jul 03, 2023 08:06 EDT
Modified Jul 04, 2023 08:22 EDT
Version 0.7.0
Depends on 582167

Description

probably linked to 582167

Steps to reproduce:

  • Take an Eclipse Modeling Package (to get OCL)
  • Install Papyrus-Sirius from its update site (papyrus, Sirius, ... will be installed in the same time)
  • Create a UML Model containing PrimtiveType and Variable
  • use the EEF Property View
  • select the PrimitiveType in the ModelExplorer
    -> you will get 2 Property Tab for the PrimitiveType (and these tabs won't be the same
  • select the Variable in the ModelExplorer
    -> you will get 3 Property Tab for the Variable (and these tabs won't be the same)

    The problem should come from a mix between OCL and UML: the 2 framework provides a UML metamodel: http://www.eclipse.org/uml2/5.0.0/UML and http://www.eclipse.org/ocl/1.1.0/UML. PrimitiveType and Variable exist in these two metamodels. The solution should be to reuse the solution used in the Papyrus Sirius Profile diagram, using a service like org.eclipse.papyrus.sirius.uml.diagram.common.services.CommonDiagramServices.isTypeOf(Element, String) to distinguish them.