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

Bug 332727

Summary: [Profile Diagram] Problems with Stereotype included into a Package
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: DiagramAssignee: Mickael ADAM <mickael.adam29>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: klaas.gadeyne, papyrus-bugs, sebastien.gerard
Version: 0.10.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Vincent Lorenzo CLA 2010-12-16 07:23:26 EST
Currently, we can't create a stereotype in Package. We forbidden this action because the profile definition doesn't allow to take account the Stereotype which are not owned directly by a Package. 

Nevertheless we can drag an existing Stereotype in a Package. We allow this action, because it works in case of static profile.
Comment 1 Camille Letavernier CLA 2013-10-16 09:07:49 EDT
The specification has changed in UML 2.4. It is now possible to have and define stereotypes owned in a Package.

The Papyrus Profile Diagram doesn't correctly support this.
Comment 2 Camille Letavernier CLA 2014-04-09 12:45:54 EDT
Fixed in b1d4c21, pushed to master
Comment 3 Klaas Gadeyne CLA 2014-04-18 08:01:55 EDT
(In reply to Camille Letavernier from comment #2)
> Fixed in b1d4c21, pushed to master

Am I right that a the currently nightly build do _not_ yet allow to create profile diagrams below a package in a profile, although it is allowed to create them below a "profile package" and then move them under a package?

So, on can now create stereotypes below a package, but not represent them :-)
Comment 4 Klaas Gadeyne CLA 2014-04-18 08:08:31 EDT
(In reply to Klaas Gadeyne from comment #3)
> (In reply to Camille Letavernier from comment #2)
> > Fixed in b1d4c21, pushed to master
> 
> Am I right that a the currently nightly build do _not_ yet allow to create
> profile diagrams below a package in a profile, although it is allowed to
> create them below a "profile package" and then move them under a package?
> 
> So, on can now create stereotypes below a package, but not represent them :-)

Additionally, when using the workaround of creating a diagram below the profile package and moving it afterwards below the package, elements which are created on the diagram are not moved below the package, but remain below the top level profile package.
Comment 5 Klaas Gadeyne CLA 2014-04-18 10:11:01 EDT
(In reply to Klaas Gadeyne from comment #4)
> (In reply to Klaas Gadeyne from comment #3)
> > (In reply to Camille Letavernier from comment #2)
> > > Fixed in b1d4c21, pushed to master
> > 
> > Am I right that a the currently nightly build do _not_ yet allow to create
> > profile diagrams below a package in a profile, although it is allowed to
> > create them below a "profile package" and then move them under a package?
> > 
> > So, on can now create stereotypes below a package, but not represent them :-)
> 
> Additionally, when using the workaround of creating a diagram below the
> profile package and moving it afterwards below the package, elements which
> are created on the diagram are not moved below the package, but remain below
> the top level profile package.

And (as a consequence?) stereotypes below package cannot be selected when customizing the palette :-(
Comment 6 Toni Siljamäki CLA 2014-05-07 10:47:20 EDT
Shouldn't this one be reopened, and then fixed?
Comment 7 Mickael ADAM CLA 2014-05-07 10:57:17 EDT
will check this
Comment 8 Remi Schnekenburger CLA 2014-05-15 04:35:27 EDT
See bug 434928: [Profile] Papyrus shall support stereotypes defined in Packages
https://bugs.eclipse.org/bugs/show_bug.cgi?id=434928

It will contain all tasks related to stereotypes in Package (since UML 2.4.1)