Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » DSML. Struggling to configure Apply Stereotype Advice
DSML. Struggling to configure Apply Stereotype Advice [message #1804528] Thu, 28 March 2019 11:19 Go to next message
Simon Kuzin is currently offline Simon KuzinFriend
Messages: 18
Registered: February 2019
Location: Singapore
Junior Member
Dears,
Looking for your advise in proper way to define Element Types Config.
I'm doing a prototype of DSML plugin. Took Archimate as sample.

I've Created UML profile, with Archimate::Application Component stereotype , extending UML::Component.
Defined element type configuration and DI type configuration.
In element type configuration defined Apply Stereotype Advice Configuration.
Created palette configuration, with tool for Archimate::Application Component Shape.
Deployed all configurations.

My expectation is that this should be enough to have a tool, defined by me, to:
1. Create UML::Component on a diagram (i use class diagram)
2. Automatically apply Archimate::Application Component stereotype to it.

In reality , the tool creates UML::Component but does not apply a stereotype.
I can go to Profile section in Properties and apply the Application Component stereotype manually, so it seems that profile itself is OK and problem is somwhere in Element Types Config .

Types Configurations Listener view displays 1 instance of disapproved advice, which seems to be my Apply Stereotype Advice, but i cannot figure out the reason it got disapproved.

Please advise
1. what's lacking in my configs?
2. how i can debug defined configs to nail down such issues?

Re: DSML. Struggling to configure Apply Stereotype Advice [message #1804793 is a reply to message #1804528] Mon, 01 April 2019 11:08 Go to previous message
Simon Kuzin is currently offline Simon KuzinFriend
Messages: 18
Registered: February 2019
Location: Singapore
Junior Member
Hi all,

I've finally found the issue.
Exporting profile from plugin as org.eclipse.papyrus.uml.extensionpoints.UMLProfile extension is not enough.
It should be also exported as ecore profile by means of one of following extension points:
org.eclipse.uml2.uml.dynamic_package
org.eclipse.uml2.uml.generated_package


After defining org.eclipse.uml2.uml.dynamic_package in my plugin, configured Apply Stereotype Advice started to apply stereotypes as it was expected.

index.php/fa/35177/0/

With this we may consider the thread closed.
Previous Topic:Create Sub Model cause erroneous class diagram
Next Topic:DSML Diagram. Weird behaviour of Delete Selected Element
Goto Forum:
  


Current Time: Thu Dec 12 00:36:18 GMT 2019

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

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

Back to the top