Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Diagram Assistant: Create New Element with stereotype applied(How to create a new element with a stereotype from a connector assistant)
Diagram Assistant: Create New Element with stereotype applied [message #1828970] Tue, 23 June 2020 13:16 Go to next message
Susanne Fuchs is currently offline Susanne FuchsFriend
Messages: 27
Registered: March 2020
Junior Member
Hi,

I wanted to create diagram assistants, especially connector assistants, for a profile.

I followed the instructions here to generate the .assistants file: https://help.eclipse.org/2020-06/index.jsp?topic=%2Forg.eclipse.papyrus.uml.profile.assistants.doc%2Ftarget%2Fgenerated-eclipse-help%2Fprofile-assistants.html
As an alternative approach, I also copied the activityDiagram.assistants and added the elements of my profile to it. (I attached this assistant)

Both ways, I got a connector assistant that creates connectors with my stereotype applied.

What I'm still missing:
When I look at this file from the documentation mentioned above
index.php/fa/38402/0/
it is possible to drag the connector into empty space, and create a New Element with a stereotype from the profile applied.
When I try to do this with my assistents, it's only possible to create normal elements without stereotypes. (well, with the generated assistant, Papyrus usually just crashes when I do this)

Does anyone know where to find the example assistant and profile from the documentation? Or any other example for which this works. I would like to have a look and compare it. I would also be very happy if anyone had any other clues on how to do this!

Thank you


index.php/fa/38404/0/
Re: Diagram Assistant: Create New Element with stereotype applied [message #1829188 is a reply to message #1828970] Fri, 26 June 2020 16:04 Go to previous message
Susanne Fuchs is currently offline Susanne FuchsFriend
Messages: 27
Registered: March 2020
Junior Member
So I found the videos explaining Diagram Assistants from when they were introduced: for example https://www.youtube.com/watch?v=tyc0gWU4xj0 and https://www.youtube.com/watch?v=i3ERSnjmTgA
but it seems like a lot has changed since then in terms of element type configurations? I have tried to create the same diagram assistants that are shown in the tutorial, but so far I have not been able to get them to work at all.
It would be really nice to have some up-to-date instructions on how to handle these things. :)
Previous Topic:Registering Static Profile - Profile not listed
Next Topic:How to design n-ary relations in Papyrus
Goto Forum:
  


Current Time: Fri Apr 26 14:05:06 GMT 2024

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

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

Back to the top