Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Accelo]use of @code-explicit
[Accelo]use of @code-explicit [message #512301] Thu, 04 February 2010 15:40 Go to next message
Eclipse UserFriend
Originally posted by: koos.waytostay.com

Hi All,

I have to generate code from UML getting the following result for c-sharp
like

[ServiceContract]
public interface IBookingService
{
[OperationContract]
BookingContract getBookingContract();
}

I tried using @code-explicit according the standard but this does not work.
Is this not implemented and if not is there another way to generate the []
maybe using an excape character?

Koos
Re: [Accelo]use of @code-explicit [message #512309 is a reply to message #512301] Thu, 04 February 2010 16:18 Go to previous messageGo to next message
Sebastien Roy is currently offline Sebastien RoyFriend
Messages: 51
Registered: November 2009
Member
According to Accelo documentation, the code explicit syntax is not implemented yet.
But you can escape bracket characters like that :

['['/]ServiceContract[']'/]
public interface IBookingService
{
['['/]OperationContract[']'/]
BookingContract getBookingContract();
}


Regards

Sebastien
Re: [Accelo]use of @code-explicit [message #512450 is a reply to message #512309] Fri, 05 February 2010 08:25 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.
--------------070208020100060409090801
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Sebastien, Koos,

Sebastien's answer is exactly right, just wanted to mention that the
closing bracket ']' doesn't need to be escaped.

Laurent Goubet
Obeo

Sebastien Roy wrote:
> According to Accelo documentation, the code explicit syntax is not
> implemented yet.
> But you can escape bracket characters like that :
>
>
> ['['/]ServiceContract[']'/]
> public interface IBookingService
> {
> ['['/]OperationContract[']'/]
> BookingContract getBookingContract();
> }
>
>
> Regards
>
> Sebastien
>


--------------070208020100060409090801
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=
--------------070208020100060409090801--
Previous Topic:[Acceleo]How to protect user code by signature changes
Next Topic:starting an Ant task from a Xpand workflow
Goto Forum:
  


Current Time: Sun Nov 10 11:41:40 GMT 2024

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

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

Back to the top