Skip to main content



      Home
Home » Modeling » Papyrus » Apply stereotypes to InstanceSpecification(Question about stereotypes)
Apply stereotypes to InstanceSpecification [message #650990] Thu, 27 January 2011 06:54 Go to next message
Eclipse UserFriend
Hello.
How I can apply a stereotype to an InstanceSpecification?

Thankyou
Re: Apply stereotypes to InstanceSpecification [message #650995 is a reply to message #650990] Thu, 27 January 2011 07:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

you can select the instance specification in the model explorer or any diagram where it is displayed.
Then; go to the Property View (if not present, use the Papyrus perspective or the 'Show Property View' action on the contextual menu of a diagram.)
In the property view, select the tab "profile". You can there apply the stereotype you want to apply.

HTH
Rémi
Re: Apply stereotypes to InstanceSpecification [message #651012 is a reply to message #650990] Thu, 27 January 2011 07:58 Go to previous messageGo to next message
Eclipse UserFriend
I saw, but in that menù I can't see the stereotype I create
Re: Apply stereotypes to InstanceSpecification [message #651048 is a reply to message #651012] Thu, 27 January 2011 10:00 Go to previous messageGo to next message
Eclipse UserFriend
The profile should be apply on your model:
Select the root model in your model explorer, and in the same profile tab, you have a section "Applied Profile", where you can apply your profile.
Once your profile is applied, you should be able to apply your stereotype on your instance specification.

HTH
Rémi
Re: Apply stereotypes to InstanceSpecification [message #651328 is a reply to message #650990] Sat, 29 January 2011 05:18 Go to previous messageGo to next message
Eclipse UserFriend
I have create an empty profile, I have create a Stereotype inside it, Then I have create an Empty model. Inside this empty model I have create a new model, add my profile to the applied Profile and then I have create an Instance specification inside this last model.
I still can't see my Stereotype.

Why?

Thank you
Re: Apply stereotypes to InstanceSpecification [message #651667 is a reply to message #650990] Tue, 01 February 2011 03:15 Go to previous messageGo to next message
Eclipse UserFriend
Is there any tutorial that I can follow to solve my problems?
Re: Apply stereotypes to InstanceSpecification [message #651672 is a reply to message #651667] Tue, 01 February 2011 03:22 Go to previous message
Eclipse UserFriend
Hi,

you will find some documentation about profiles on the first document located in the documentation area of Papyrus web site: http://www.eclipse.org/modeling/mdt/papyrus/usersTutorials/u sersTutorialsIndex.php

According to your explanation, it seems that your stereotype does not extends the InstanceSpecification metaclass. For this, when you model your profile, you should select the "import metaclass" tool in the palette and click on the diagram. In the dialog that opens, select the InstanceSpecification and add it to the right side of the dialog.
Then create an extension link starting from your stereotype and targeting the metaclass InstanceSpecification. Then save the profile and answer yes when it asks for definition.
Once you have done this, you apply this profile on your model. This should give you access to your stereotype on instance specifications.

HTH
Rémi
Previous Topic:class diagram from java via modisco
Next Topic:Papyrus save notification
Goto Forum:
  


Current Time: Thu Jul 03 12:39:42 EDT 2025

Powered by FUDForum. Page generated in 0.04931 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top