Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Papyrus for Real Time » Create RTMessageSet?
Create RTMessageSet? [message #1741027] Mon, 22 August 2016 12:42 Go to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 165
Registered: January 2013
Location: Sweden
Senior Member
Hi,

Is the a method for creating RTMessageSets programmatically?

I was hoping for org.eclipse.papyrusrt.umlrt.core.utils.ProtocolContainerUtils but no luck there. Anywhere else I should look?

/Patrik
Re: Create RTMessageSet? [message #1742725 is a reply to message #1741027] Tue, 06 September 2016 23:08 Go to previous message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 1176
Registered: July 2009
Location: Canada
Senior Member

Hi, Patrik,

The UMLRTElementTypesEnumerator class has an RT_MESSAGE_SET type that you should be able to instantiate by issuing an CreateElementRequest to the edit-helper of an appropriate container element in the model (this would be the protocol's <<ProtocolContainer>> package). The resulting command should configure a new message-set instance with the required stereotypes and structure.

You can see how this works in the org.eclipse.papyrusrt.umlrt.core.tests.creation.CreateElementTest class (these tests create a variety of things).

HTH,

Christian
Previous Topic:Import RSA profile from cli/CI?
Next Topic:getting incoming/outcoming events of a protocol object in Papyrus-RT
Goto Forum:
  


Current Time: Wed Sep 26 14:14:58 GMT 2018

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

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

Back to the top