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

Bug 327199

Summary: [Profile application] Unapplying profile does not remove applied stereotypes
Product: [Modeling] Papyrus Reporter: Ali Koudri <ali.koudri>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: eclipse-bugzilla, rschnekenburger
Version: 0.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch to fix the issue rschnekenburger: iplog+

Description Ali Koudri CLA 2010-10-07 05:38:21 EDT
When I unapply a profile, stereotypes are still applied on model elements. If this is a normal behavior, I wonder why I cannot access tagged values from properties view.
Comment 1 Patrick Tessier CLA 2012-07-02 08:02:42 EDT
Each edit part cleans annotations about stereotype application in the notation
done in the revision 8493
Comment 2 Alain Le Guennec CLA 2012-07-26 08:38:59 EDT
Actually, I think there is a (small) regression introduced by Patrick's correction.
I get some classcast exception when opening a class diagram now.
See attached patch for a fix for that regression.
Comment 3 Alain Le Guennec CLA 2012-07-26 08:40:36 EDT
Created attachment 219210 [details]
Patch to fix the issue

(1) I, Alain LE GUENNEC, wrote 100% of the code I've provided. 
(2) This code contains no cryptography 
(3) I have the right to contribute the code to Eclipse. 
(4) I contribute the content under the EPL.
Comment 4 Remi Schnekenburger CLA 2012-09-07 06:11:20 EDT
The fix did introduced a small regression. It should be interested to apply and commit the patch
Comment 5 Remi Schnekenburger CLA 2012-09-07 06:12:51 EDT
It seems that the patch is not sufficient. A search all (GraphicalEditPart) should be done, to replace all GraphicalEditPArt by IGraphicalEditPart.
Comment 6 Camille Letavernier CLA 2012-09-13 10:04:04 EDT
Minor fix in r8985 (Branch 0.9.X):

Fix a NPE when the View refers to a semantic element which has been deleted (Avoid diagram corruption).
Comment 7 Camille Letavernier CLA 2012-09-18 05:05:38 EDT
> Minor fix in r8985 (Branch 0.9.X):
> 
> Fix a NPE when the View refers to a semantic element which has been deleted (Avoid diagram corruption).

Backported to the trunk in r9025
Comment 8 Sébastien Gérard CLA 2013-04-19 12:38:10 EDT
no more issue. Closed.