Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [acceleo]Accessing UML elements in SysML Model
[acceleo]Accessing UML elements in SysML Model [message #638362] Thu, 11 November 2010 02:38 Go to next message
Bill Kinahan is currently offline Bill KinahanFriend
Messages: 6
Registered: July 2009
Junior Member
I am trying to transform a SysML model and am having difficulty getting access to some model elements such as standards, ports and packages. It appears to me from the list of items I see in the sytax completion menu, that only SysML extension elements (e.g., Block, FlowPort, ConstrintBlock) are recognized by the editor.

Is this the correct behavior? What if I want to use a template on all of the standard ports present in a Block?

Perhaps I need to include some other resource into either my SysML model or my Acceleo model?

Thanks in advance for your help.

Bill
Re: [acceleo]Accessing UML elements in SysML Model [message #639149 is a reply to message #638362] Mon, 15 November 2010 12:19 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030200040808050803040801
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Bill,

If you wish to use the type from multiple metamodels, you have to tell
Acceleo that you will. This is done in the [module/] block at the
beginning of all of your mtl files. For example if I wish for a module
to take types from both Ecore and GenModel :

[module Common('http://www.eclipse.org/emf/2002/GenModel',
'http://www.eclipse.org/emf/2002/Ecore')/]

Laurent Goubet
Obeo

On 11/11/2010 03:38, Bill Kinahan wrote:
> I am trying to transform a SysML model and am having difficulty getting
> access to some model elements such as standards, ports and packages. It
> appears to me from the list of items I see in the sytax completion menu,
> that only SysML extension elements (e.g., Block, FlowPort,
> ConstrintBlock) are recognized by the editor.
>
> Is this the correct behavior? What if I want to use a template on all of
> the standard ports present in a Block?
>
> Perhaps I need to include some other resource into either my SysML model
> or my Acceleo model?
>
> Thanks in advance for your help.
>
> Bill


--------------030200040808050803040801
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------030200040808050803040801--
Previous Topic:[EMF: Answered] How to create a container of references
Next Topic:[acceleo]Accessing UML elements in SysML Model
Goto Forum:
  


Current Time: Thu Oct 10 04:46:52 GMT 2024

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

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

Back to the top