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

Bug 364065

Summary: Can't change name of member end in AssociationClass
Product: [Modeling] Papyrus Reporter: Simon Wright <simon>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: toni.siljamaki
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Sample model. none

Description Simon Wright CLA 2011-11-17 12:20:03 EST
Build Identifier: M20110909-1335

I have an AssociationClass where the association ends are both owned by the association.
If I edit the member end and try to change its name (which is allowed in the dialog), nothing happens (the .uml is unchanged).
The AssociationClass is Button_To_Lamp in the attached PapyrusModel.uml (I changed the ownedEnd names to lampFoo and buttonFoo outside Eclipse while exploring the problem).

Reproducible: Always

Steps to Reproduce:
1. Create two Classes and associate via an AssociationClass.
2. Make both ends of the association 'owned by association'.
3. Open the AssociationClass's properties and double-click on one of the "Member end"s. Change the name and close the dialog.
4. Observe that the Member end's name hasn't changed, in the Properties or on the diagram.
Comment 1 Simon Wright CLA 2011-11-17 12:21:50 EST
Created attachment 207159 [details]
Sample model.
Comment 2 Simon Wright CLA 2011-11-17 12:29:35 EST
I'm sorry that the Papyrus version doesn't show (I did enter the Eclipse version, which is Version: 3.7.1 Build id: M20110909-1335 from Topcased 5.1.0 RCP).

I note that I can change the name as I wanted by going to the Advanced properties and changing the name there.

Could this be related to the fact that if I select the end name on the diagram rather than the AssociationClass itself, the heading of the Property view changes to Property: lampFoo : Lamp[1..*] but the contents of the Property view don't? In particular, the Name remains that of the AssociationClass.
Comment 3 Toni Siljamäki CLA 2013-10-09 06:48:19 EDT
Is this still an issue?
Comment 4 Simon Wright CLA 2013-10-10 01:25:29 EDT
(In reply to Toni Siljamäki from comment #3)
> Is this still an issue?

I don't know; if it hasn't been fixed then it would be. But the lack of any sort of response from the developers to the three bugs I raised - of which two, including this one, were showstoppers for me - caused me to abandon Papyrus in favour of ArgoUML.
Comment 5 Camille Letavernier CLA 2013-10-10 08:33:16 EDT
The implementation has changed since 0.8.x, and it is possible to rename association ends.

So, one might say this bug is fixed, but actually... The real issue in this specific case, is that when you select an association end in the diagram, this is actually the association which is selected (And can be renamed).

Note that this is not specific to association classes with owned ends. The issue is the same for all associations (Except that for standard associations, when they are selected, we can edit both the name of the association and the name of each association end)
Comment 6 Toni Siljamäki CLA 2013-10-10 14:13:01 EDT
...meaning that this old bug should be closed as fixed. :)
Comment 7 Simon Wright CLA 2017-09-06 12:15:41 EDT
So I’ve closed it.