Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 417805

Summary: [Profile Diagram] Show/hide contents doesn't work for Enumerations
Product: [Modeling] Papyrus Reporter: Toni Siljamäki <toni.siljamaki>
Component: DiagramAssignee: Gabriel Pascual <gabriel.pascual>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Celine.janssens, cletavernier, papyrus-bugs, rschnekenburger, vincent.lorenzo
Version: 1.0.0   
Target Milestone: SR2   
Hardware: All   
OS: All   
Whiteboard: dx deploy
Bug Depends on:    
Bug Blocks: 433206    
Attachments:
Description Flags
Obfuscated existing profile. none

Description Toni Siljamäki CLA 2013-09-23 07:00:28 EDT
Created attachment 235712 [details]
Obfuscated existing profile.

Attached is a project containing an obfuscated version of an existing profile,
one which has been attached also to other bug reports earlier.

In this profile there is an Enumeration named Lifecycle.
When drag-and-dropping it into a profile diagram the
enumeration literals cannot be made visible.
Comment 1 Camille Letavernier CLA 2013-09-23 09:37:33 EDT
Maybe you're trying to drop both the two Enumeration literals and the Comment at the same time?

They nearly have the same icon.

When dropping only the EnumerationLiteral (Or using Ctrl + Drop on the Enumeration itself), it works as expected.
Comment 2 Toni Siljamäki CLA 2013-09-24 05:17:47 EDT
I just drag-and-dropped the Enumeration in the same way as I can
drag-and-drop a Stereotype and then display its attributes.

Drag-and-dropping an Enumeration including its literals
works fine in the tool the profile came from, displaying the
literals in the order they appear in Model Explorer.
Comment 3 Camille Letavernier CLA 2013-09-24 05:23:21 EDT
Ok, so there are three different ways to display the EnumerationLiterals in an Enumeration:

- Ctrl + Drop the Enumeration. It will display the Enumeration and its Literals
- Drop the Enumeration, then drop each Literal in the Enumeration
- Drop the Enumeration, then go to Filters > Show/Hide contents (F4) > Select all

I can confirm that the "Show/Hide contents" action doesn't work for Enumerations in the Profile Diagram (The action is disabled). It works fine on e.g. Enumerations on Class Diagram.

I rename the task accordingly
Comment 4 Patrick Tessier CLA 2014-04-22 10:01:38 EDT
the synchronization can also solve the problem
Comment 5 Celine Janssens CLA 2014-12-05 04:29:39 EST
The behavior Show Hide Compartment Contents is missing for the Enumeration into profile Diagram.
Fixed in change 37579
https://git.eclipse.org/r/#/c/37579/
Comment 6 Remi Schnekenburger CLA 2015-01-08 11:01:57 EST
https://git.eclipse.org/r/#/c/37579/ has been merged with commit ada6770709d9356b2820ef9b7b45df42997f22d7 in master
Comment 7 Remi Schnekenburger CLA 2015-01-08 11:04:15 EST
Warning, this bug should be fixed also on maintenance branch, if possible.
Comment 8 Remi Schnekenburger CLA 2015-02-06 08:53:24 EST
review has been pushed on maintenance/branch for this bug: https://git.eclipse.org/r/#/c/39373/
Comment 9 Remi Schnekenburger CLA 2015-02-10 12:39:05 EST
The cherry pick has been pushed on maintenance branch, closing bug.
Comment 10 Toni Siljamäki CLA 2015-02-11 07:41:35 EST
Yep, works fine on Mars.