Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327199 - [Profile application] Unapplying profile does not remove applied stereotypes
Summary: [Profile application] Unapplying profile does not remove applied stereotypes
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.1   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-07 05:38 EDT by Ali Koudri CLA
Modified: 2013-05-30 02:49 EDT (History)
2 users (show)

See Also:


Attachments
Patch to fix the issue (1.37 KB, patch)
2012-07-26 08:40 EDT, Alain Le Guennec CLA
rschnekenburger: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.