|
|
|
Re: Containment problem. [message #511937 is a reply to message #511781] |
Wed, 03 February 2010 13:24 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Mauro,
Comments below.
Mauro Condarelli wrote:
> Ed Merks wrote:
>> Mauro,
>>
>> Comments below.
> ditto.
>
>> Mauro Condarelli wrote:
>>> I am trying to get one single instance of a class to be contained into
> ...
>>> /**
>>> * @model contained="true"
>> You mean containment="true" right? Unfortunately the @model process
>> does almost no validation checking so if you feed it garbage, it
>> quietly ignores that.
>
> AAAARGHHHH!!
> I feel *SO* idiot :(
Not really. It would be awfully nice if the converter complained about
bogus annotations but given how the logic is implemented (by pattern
matching each supported case against the full string), it's a fair bit
of work to add the extra checking (how to know which parts never matched
any pattern).
>
> Thanks.
>
> Now it works.
> Two small quirks:
>
> 1) I had to clean the project before it actually decided to
> acknowledge the changes in the generated files.
I've not seen that before. Perhaps the workspace was out of sync with
the actual file system?
>
> 2) My app requires another project in the same workspace. Each time I
> "Generate Model code" the Build Path (Properties->Java Build
> Path->Projects) is reset to null and I have to add it again. Is this a
> bug or (another) misunderstanding from my side?
Generally you should be modifying the classpath for plugin projects
(which is what EMF always generates) only by modifying the dependencies
in the MANIFEST.MF.
>
> Thanks a LOT!
> Mauro
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03089 seconds