Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365696 - property disappear
Summary: property disappear
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-06 03:50 EST by Gwennolé Hinault CLA
Modified: 2017-09-08 09:58 EDT (History)
0 users

See Also:


Attachments
bug365696.zip (2.05 KB, application/octet-stream)
2013-03-13 14:41 EDT, Arnaud Cuccuru CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gwennolé Hinault CLA 2011-12-06 03:50:47 EST
(Sorry for my english)
When you move a property from a Class in another class in the model explorer, the property don't move on the class diagram. 
In another end, when you move the property from a class in another class on the class diagram, the property move on the model explorer but it disappear on the class diagram and it is impossible to see him again after...
Comment 1 Yann Tanguy CLA 2011-12-14 05:18:27 EST
The expected behavior with current implementation is the following.

When you move a property in another class in the model explorer, the property is removed from diagram wherever it appears as a child of its old container (the previous parent class). This is done to avoid having diagram representation becoming inconsistent regarding the model.
The property can still be shown in a compartment of its ne owner after this, by dragging it from the model explorer into a valid compartment.

Is the behavior you observe different from this ?
Comment 2 Gwennolé Hinault CLA 2011-12-16 10:12:19 EST
Yes, I observe a different behavior.

If I only use the model explorer to move a property. The property move on the model explorer but, this property isn't remove from the old class in the class diagram and i can show it in the good class by dragging it from the class diagram. 
In the model explorer i have only 1 property but in the class diagram i have two property.

In french language:

(Vu ton Prénom et nom je me permets de le mettre en français je pense que tu dois l'être.)

Donc le comportement que j'observe est bien différent de celui que tu me décris.

Lorsque je bouge une propriété dans l'explorateur de modèle, le diagramme de classe n'est pas mis à jour.
Je me retrouve avec l'état :
Diagramme de classe : la propriété est dans l'ancienne classe
Explorateur de modèle : la propriété est dans la nouvelle classe

Dans cet état, si je glisse la propriété de l'explorateur de modèle vers le diagramme de classe. La propriété apparaît bien dans la nouvelle classe mais est toujours présente dans l'ancienne classe.
Je me retrouve avec l'état :
Diagramme de classe : La propriété est dans l'ancienne classe et dans la nouvelle classe
Explorateur de modèle : la propriété est dans la nouvelle classe.

En ce qui concerne l'autre bug que je décrivais, je dois avouer ne plus réussir à le reproduire.
Comment 3 Arnaud Cuccuru CLA 2013-03-13 14:39:44 EDT
The bug described in french (sorry for english speakers) is still reproducible under Kepler M5
Comment 4 Arnaud Cuccuru CLA 2013-03-13 14:41:49 EDT
Created attachment 228376 [details]
bug365696.zip

This model illustrate the bug. The class diagram shows two classes, each one with an attribute. If you look in the model explorer, you'll see only one of the classes has an attribute.
This model has been produced following the steps indicated in the bug description.