Creating a custom Capsule [message #1749947] |
Wed, 14 December 2016 03:57  |
Eclipse User |
|
|
|
Hi,
I'm trying to create a custom capsule (element type) with some custom behavior.
When creating a new instance of this capsule type the capsule should be created and a custom Capsule Structure Diagram be created in the capsule. This I've managed to do.
What I also want is to create an UML-RT Staemachine , i.e an instance of org.eclipse.papyrusrt.umlrt.core.RTStateMachine which in turn should create an instance of my custom StateMachineDiagram.
Here I suppose I need to create an specialization type of the org.eclipse.papyrusrt.umlrt.core.RTStateMachine and add an advice to create my custom StateMachineDiagram (similar to the custom Capsule Structure Diagram mention above).
The question is how to I create an instance of org.eclipse.papyrusrt.umlrt.core.RTStateMachine (or my specialization) and add it to my custom capsule?
I guess this boils down to the question how to create a instance of an element type programmatically.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.16709 seconds