Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » GenModel annotations
GenModel annotations [message #418473] Wed, 16 April 2008 21:45 Go to next message
Conrad Hoffmann is currently offline Conrad HoffmannFriend
Messages: 12
Registered: July 2009
Junior Member
Hello,

I just recently came across GenModel annotations to specify an
implementation for an eOperation.

I was wondering if the same could be used to generate a
get*FromString/getStringFrom* implementation for custom data types?

Even better would be a some kind of complete documentation what exactly can
be done using annotations. I have only found bits and pieces so far...

Thanks, Conrad
Re: GenModel annotations [message #418476 is a reply to message #418473] Wed, 16 April 2008 23:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Conrad,

On there's no support for code snippets that could be used for data type
conversion. There's no complete document (other than the second edition
of the book) of all the annotation magic either. Sorry. :-(


Conrad Hoffmann wrote:
> Hello,
>
> I just recently came across GenModel annotations to specify an
> implementation for an eOperation.
>
> I was wondering if the same could be used to generate a
> get*FromString/getStringFrom* implementation for custom data types?
>
> Even better would be a some kind of complete documentation what exactly can
> be done using annotations. I have only found bits and pieces so far...
>
> Thanks, Conrad
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: GenModel annotations [message #418487 is a reply to message #418476] Thu, 17 April 2008 07:11 Go to previous messageGo to next message
Conrad Hoffmann is currently offline Conrad HoffmannFriend
Messages: 12
Registered: July 2009
Junior Member
Hello Ed,

Thanks a lot.
Unfortunately the local bookstore doesn't have it yet :/

So maybe one last question "manually": can I specifiy code for the
get-Method of derived attributes, and if so, how?

Thanks,
Conrad

Ed Merks wrote:

> Conrad,
>
> On there's no support for code snippets that could be used for data type
> conversion. There's no complete document (other than the second edition
> of the book) of all the annotation magic either. Sorry. :-(
>
>
> Conrad Hoffmann wrote:
>> Hello,
>>
>> I just recently came across GenModel annotations to specify an
>> implementation for an eOperation.
>>
>> I was wondering if the same could be used to generate a
>> get*FromString/getStringFrom* implementation for custom data types?
>>
>> Even better would be a some kind of complete documentation what exactly
>> can be done using annotations. I have only found bits and pieces so
>> far...
>>
>> Thanks, Conrad
>>
Re: GenModel annotations [message #418488 is a reply to message #418487] Thu, 17 April 2008 07:33 Go to previous messageGo to next message
Reinhold Bihler is currently offline Reinhold BihlerFriend
Messages: 64
Registered: July 2009
Member
Conrad,

you can download the rough cuts version of the second edition form safari
for $35. See:

http://safari.awprofessional.com/9780321331885

IMHO it is well worth the money.
Of course asking Ed is a bit cheaper :-P

Reinhold
--
www.emf4net.org


"Conrad Hoffmann" <conrausch@gmx.de> wrote in message
news:fu6td1$ugr$1@build.eclipse.org...
> Hello Ed,
>
> Thanks a lot.
> Unfortunately the local bookstore doesn't have it yet :/
>
> So maybe one last question "manually": can I specifiy code for the
> get-Method of derived attributes, and if so, how?
>
> Thanks,
> Conrad
>
> Ed Merks wrote:
>
>> Conrad,
>>
>> On there's no support for code snippets that could be used for data type
>> conversion. There's no complete document (other than the second edition
>> of the book) of all the annotation magic either. Sorry. :-(
>>
>>
>> Conrad Hoffmann wrote:
>>> Hello,
>>>
>>> I just recently came across GenModel annotations to specify an
>>> implementation for an eOperation.
>>>
>>> I was wondering if the same could be used to generate a
>>> get*FromString/getStringFrom* implementation for custom data types?
>>>
>>> Even better would be a some kind of complete documentation what exactly
>>> can be done using annotations. I have only found bits and pieces so
>>> far...
>>>
>>> Thanks, Conrad
>>>
>
Re: GenModel annotations [message #418499 is a reply to message #418487] Thu, 17 April 2008 11:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090509070302050302090206
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Conrad,

No. I spent a little bit of time exploring
https://bugs.eclipse.org/bugs/show_bug.cgi?id=216701 as a general
mechanism for being able to specify the behavior for a derived feature,
but there will not be sufficient time to complete that for this release.


Conrad Hoffmann wrote:
> Hello Ed,
>
> Thanks a lot.
> Unfortunately the local bookstore doesn't have it yet :/
>
> So maybe one last question "manually": can I specifiy code for the
> get-Method of derived attributes, and if so, how?
>
> Thanks,
> Conrad
>
> Ed Merks wrote:
>
>
>> Conrad,
>>
>> On there's no support for code snippets that could be used for data type
>> conversion. There's no complete document (other than the second edition
>> of the book) of all the annotation magic either. Sorry. :-(
>>
>>
>> Conrad Hoffmann wrote:
>>
>>> Hello,
>>>
>>> I just recently came across GenModel annotations to specify an
>>> implementation for an eOperation.
>>>
>>> I was wondering if the same could be used to generate a
>>> get*FromString/getStringFrom* implementation for custom data types?
>>>
>>> Even better would be a some kind of complete documentation what exactly
>>> can be done using annotations. I have only found bits and pieces so
>>> far...
>>>
>>> Thanks, Conrad
>>>
>>>
>
>


--------------090509070302050302090206
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Conrad,<br>
<br>
No.&nbsp; I spent a little bit of time exploring <a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=216701">https://bugs.eclipse.org/bugs/show_bug.cgi?id=216701</a>
as a general mechanism for being able to specify the behavior for a
derived feature, but there will not be sufficient time to complete that
for this release.<br>
<br>
<br>
Conrad Hoffmann wrote:
<blockquote cite="mid:fu6td1$ugr$1@build.eclipse.org" type="cite">
<pre wrap="">Hello Ed,

Thanks a lot.
Unfortunately the local bookstore doesn't have it yet :/

So maybe one last question "manually": can I specifiy code for the
get-Method of derived attributes, and if so, how?

Thanks,
Conrad

Ed Merks wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Conrad,

On there's no support for code snippets that could be used for data type
conversion. There's no complete document (other than the second edition
of the book) of all the annotation magic either. Sorry. :-(


Conrad Hoffmann wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,

I just recently came across GenModel annotations to specify an
implementation for an eOperation.

I was wondering if the same could be used to generate a
get*FromString/getStringFrom* implementation for custom data types?

Even better would be a some kind of complete documentation what exactly
can be done using annotations. I have only found bits and pieces so
far...

Thanks, Conrad

</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>

--------------090509070302050302090206--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Avoiding Ecore extension...
Next Topic:org.eclipse.emf.codegen.ecore.generatorAdapters extension point
Goto Forum:
  


Current Time: Thu Mar 28 22:42:20 GMT 2024

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

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

Back to the top