| [OCLInEcore] Comments disappear when saving the .ecore file [message #552435] |
Thu, 12 August 2010 04:30  |
Toñi Reina Messages: 197 Registered: July 2009 |
Senior Member |
|
|
Hi,
I'm constraining my metamodel incrementally and iteratively. That
is, although I've written almost all the constraints in the .ecore file
with the OCLInEcore editor, I've commented some constraints in order to
test them little by little. Once I've tested a small set of constraints,
I remove other comments, and so on. Well, at least that was my
intention, because I put between comments some constraints, I saved my
..ecore file and I closed Eclipse.
The problem is that when I have opened Eclipse again, all the
comments in my .ecore file have disappear. I don't know if this is a bug
or if comments are not allowed in the OCLInEcore editor. The editor
seems to recognize them, if you write one line comments with -- or more
than one line comments with /* */.
Thanks in advance,
Toñi
|
|
|
| Re: [OCLInEcore] Comments disappear when saving the .ecore file [message #552458 is a reply to message #552435] |
Thu, 12 August 2010 05:22   |
Ed Willink Messages: 3171 Registered: July 2009 |
Senior Member |
|
|
Hi Toni
It's not a bug, it's a feature.
If you want to save comments save the file as *.oclinecore via the
context menu at the root of the outline.
Ed
On 12/08/2010 09:30, Toñi Reina Quintero wrote:
> Hi,
>
> I'm constraining my metamodel incrementally and iteratively. That is,
> although I've written almost all the constraints in the .ecore file with
> the OCLInEcore editor, I've commented some constraints in order to test
> them little by little. Once I've tested a small set of constraints, I
> remove other comments, and so on. Well, at least that was my intention,
> because I put between comments some constraints, I saved my ..ecore file
> and I closed Eclipse.
>
> The problem is that when I have opened Eclipse again, all the comments
> in my .ecore file have disappear. I don't know if this is a bug or if
> comments are not allowed in the OCLInEcore editor. The editor seems to
> recognize them, if you write one line comments with -- or more than one
> line comments with /* */.
>
>
> Thanks in advance,
> Toñi
|
|
|
| Re: [OCLInEcore] Comments disappear when saving the .ecore file [message #552459 is a reply to message #552458] |
Thu, 12 August 2010 05:50  |
Toñi Reina Messages: 197 Registered: July 2009 |
Senior Member |
|
|
Thx ed.
El 12/08/2010 11:22, Ed Willink escribió:
> Hi Toni
>
> It's not a bug, it's a feature.
>
> If you want to save comments save the file as *.oclinecore via the
> context menu at the root of the outline.
>
> Ed
>
>
> On 12/08/2010 09:30, Toñi Reina Quintero wrote:
>> Hi,
>>
>> I'm constraining my metamodel incrementally and iteratively. That is,
>> although I've written almost all the constraints in the .ecore file with
>> the OCLInEcore editor, I've commented some constraints in order to test
>> them little by little. Once I've tested a small set of constraints, I
>> remove other comments, and so on. Well, at least that was my intention,
>> because I put between comments some constraints, I saved my ..ecore file
>> and I closed Eclipse.
>>
>> The problem is that when I have opened Eclipse again, all the comments
>> in my .ecore file have disappear. I don't know if this is a bug or if
>> comments are not allowed in the OCLInEcore editor. The editor seems to
>> recognize them, if you write one line comments with -- or more than one
>> line comments with /* */.
>>
>>
>> Thanks in advance,
>> Toñi
>
|
|
|
Powered by
FUDForum. Page generated in 0.01562 seconds