Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo 3] Protected section ERROR ?
[Acceleo 3] Protected section ERROR ? [message #647618] Fri, 07 January 2011 11:56 Go to next message
Alexandre Cortier is currently offline Alexandre CortierFriend
Messages: 9
Registered: January 2011
Junior Member
Hello,

I work on a UML to C generator. When I test my templates (from Acceleo run-configuration and Eclipse runtime configuration), protected sections are lost.

A file myFile.lost is generated but corresponding sections are empty.

Is this error already known ?

Thanks,

Re: [Acceleo 3] Protected section ERROR ? [message #647740 is a reply to message #647618] Sat, 08 January 2011 14:02 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi Alexandre,

Protected areas must have a unique identifier in a given file. If two protected areas are sharing the same ID we can't put the data where it belongs. So I think that you have:

1- two protected areas with the same name

or

2- a protected area with a name that has been changed with the generation

I create a protected area named "12"
[protected ('12')]3
[/protected]

But when generated, it will create a protected area named "123":
start of user code 123
end of user code

But given the fact that you've lost some data, I would go for the first possibility.

Stephane Begaudeau, Obeo.

[Updated on: Mon, 10 January 2011 08:22]

Report message to a moderator

Re: [Acceleo 3] Protected section ERROR ? [message #647989 is a reply to message #647740] Mon, 10 January 2011 17:17 Go to previous message
Alexandre Cortier is currently offline Alexandre CortierFriend
Messages: 9
Registered: January 2011
Junior Member
Ok, it works!

Thanks for all... My problem was that two protected areas was sharing the same ID.
Previous Topic:[Xpand] Issues setting up project to generate text from UML2 profile metamodel
Next Topic:[Xpand] How to save local variables in nested for loop
Goto Forum:
  


Current Time: Sun Dec 22 06:15:19 GMT 2024

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

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

Back to the top