Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Automatic stereotype application
Automatic stereotype application [message #1816622] Fri, 01 November 2019 16:55 Go to next message
jo ber is currently offline jo berFriend
Messages: 17
Registered: August 2018
Junior Member
Hi

In a profile, I've defined a stereotype on Class element. Is it possible that this profile is automatically applied when I create a new the class element in a diagram.

thank you and kind regards

[Updated on: Fri, 01 November 2019 16:58]

Report message to a moderator

Re: Automatic stereotype application [message #1816698 is a reply to message #1816622] Tue, 05 November 2019 10:08 Go to previous messageGo to next message
Nicolas FAUVERGUE is currently offline Nicolas FAUVERGUEFriend
Messages: 47
Registered: February 2014
Member
Hi,

It's possible if you create your own element types. It needs some developments.

Nicolas.
Re: Automatic stereotype application [message #1816714 is a reply to message #1816698] Tue, 05 November 2019 12:56 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 227
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Another option might be to define a new template that already applies the profile. This template can be selected during the creation of a new model, once registered via an extension point., as shown below.

  <extension point="org.eclipse.papyrus.uml.diagram.wizards.templates">
        <template
            di_file="path to your di file ..."
            notation_file="..."
            file="path to your .uml file"
            id="<choose one>"
            language="org.eclipse.papyrus.infra.services.edit.TypeContext" (for UML, or the ID of your architecture context, if you define your own)
            name="<choose one>"
      </template>
   </extension>

Re: Automatic stereotype application [message #1816723 is a reply to message #1816714] Tue, 05 November 2019 16:22 Go to previous message
jo ber is currently offline jo berFriend
Messages: 17
Registered: August 2018
Junior Member
Thank you for the answers.
Can you point me to some documentation about the creation of a template?
Previous Topic:Need help in MARTE
Next Topic:Log during state machine C++ code execution
Goto Forum:
  


Current Time: Thu Dec 12 00:25:46 GMT 2019

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

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

Back to the top