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

Bug 497095

Summary: Properties View doesn't get cleared for elements with no page defined
Product: [Modeling] Sirius Reporter: Jacob Geisel <jacob.geisel>
Component: PropertiesAssignee: Project Inbox <sirius.properties-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: arthur.daussy_ssii, maxime.porhel, pierre-charles.david, stephane.begaudeau
Version: 4.0.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
URL: https://tuleap.eclipse.org/plugins/tracker/?aid=496
Whiteboard:
Attachments:
Description Flags
Example project
none
The state when the package is selected
none
The state when the class is selected
none
Bug Screenshot none

Description Jacob Geisel CLA 2016-06-30 09:37:41 EDT
When selecting an element in an editor which has no definition of a properties page, the previous page used is still shown and doesn't get cleared

* Create pages for some concepts of your metamodel
* Edit a model
* Select an element which has a EEF properties page
** The page(s) show(s)
* Select an element which has no EEF properties page defined
** The tabs (pages) are removed and "No properties available" is shown
** The content of the last shown page doesn't get cleared and the groups from the previous selected element are still shown
Comment 1 Pierre-Charles David CLA 2016-07-05 03:29:35 EDT
Created attachment 262908 [details]
Example project

Hi. I can't reproduce (at least on current master) using the attached project.

The steps I followed:
1. Import the project.
2. Open the session and the single diagram it contains.
3. Select package "p" on the diagram. It shows the "Page" defined in the VSM.
4. Select class "A". There is no page description for EClasses, but the normal Sirius properties tabs are shown, as expected.

Can you give more details about your case?
Comment 2 Pierre-Charles David CLA 2016-07-05 03:29:57 EDT
Created attachment 262909 [details]
The state when the package is selected
Comment 3 Pierre-Charles David CLA 2016-07-05 03:30:14 EDT
Created attachment 262910 [details]
The state when the class is selected
Comment 4 Arthur Daussy CLA 2016-07-13 04:09:16 EDT
I think you can not reproduce this bug with Ecore tool. Because every EClasses of the Ecore MM is mapped to an EEF property page (if I remember well using dynamic mappings). In our case we have some EClasses that do not have any PageDescription mapped to them. So to reproduce:

* Have a metamodel with some EClasses that have PageDescription/GroupDescription and some don't (and wihtout dynamic mappings)
* Open a sirius editor
* Select a concept that has a page and some groups that map the selected concept
* Then select a concept that does not have any page nor group mapped to it


See attachment for a screenshot

Regards
Comment 5 Arthur Daussy CLA 2016-07-13 04:19:37 EDT
Created attachment 263074 [details]
Bug Screenshot
Comment 6 Pierre-Charles David CLA 2016-10-11 09:40:35 EDT

*** This bug has been marked as a duplicate of bug 500894 ***