Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EMF: Generated classes - Copyright details
EMF: Generated classes - Copyright details [message #621868] Wed, 02 December 2009 14:43 Go to next message
Stancho  is currently offline Stancho Friend
Messages: 6
Registered: December 2009
Junior Member
Hi all,

I am using genmodel to generate Model Code.
I set Copyright text and it is generated correctly but I have $Id$ at the end of every copyright header.

How can I remove this $Id$?

Thanks in advance,
Stancho
Re: EMF: Generated classes - Copyright details [message #621870 is a reply to message #621868] Wed, 02 December 2009 14:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31959
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000003080805010705010902
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Stancho,

The Header.javajetinc template looks like this so if you've set the
copyright property property on the GenModel or include copyright
annotations in the Ecore model, those should end up being used.

/**
<%{GenBase copyrightHolder = argument instanceof GenBase ?
(GenBase)argument : argument instanceof Object[] &&
((Object[])argument)[0] instanceof GenBase ?
(GenBase)((Object[])argument)[0] : null;%>
<%if (copyrightHolder != null && copyrightHolder.hasCopyright()) {%>
*
< %=copyrightHolder.getCopyright(copyrightHolder.getGenModel() .getIndentation(stringBuffer))% >
<%} else {%>
* <copyright>
* </copyright>
*
* <%="$"%>Id<%="$"%>
<%}}%>
*/

Which version of EMF are you using?


Stancho wrote:
> Hi all,
>
> I am using genmodel to generate Model Code.
> I set Copyright text and it is generated correctly but I have $Id$ at
> the end of every copyright header.
>
> How can I remove this $Id$?
>
> Thanks in advance,
> Stancho

--------------000003080805010705010902
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Stancho,<br>
<br>
The Header.javajetinc template looks like this so if you've set the
copyright property property on the GenModel or include copyright
annotations in the Ecore model, those should end up being used.<br>
<blockquote><small>/**<br>
&lt;%{GenBase copyrightHolder = argument instanceof GenBase ?
(GenBase)argument : argument instanceof Object[] &amp;&amp;
((Object[])argument)[0] instanceof GenBase ?
(GenBase)((Object[])argument)[0] : null;%&gt;<br>
&lt;%if (copyrightHolder != null &amp;&amp;
copyrightHolder.hasCopyright()) {%&gt;<br>
 *
&lt;%=copyrightHolder.getCopyright(copyrightHolder.getGe nModel().getIndentation(stringBuffer))%&gt; <br>
&lt;%} else {%&gt;<br>
 * &lt;copyright&gt;<br>
 * &lt;/copyright&gt;<br>
 *<br>
 * &lt;%="$"%&gt;Id&lt;%="$"%&gt;<br>
&lt;%}}%&gt;<br>
 */</small><br>
</blockquote>
Which version of EMF are you using?<br>
<br>
<br>
Stancho wrote:
<blockquote cite="mid:hf5uee$vl5$1@build.eclipse.org" type="cite">Hi
all,
<br>
<br>
I am using genmodel to generate Model Code.
<br>
I set Copyright text and it is generated correctly but I have $Id$ at
the end of every copyright header.
<br>
<br>
How can I remove this $Id$?
<br>
<br>
Thanks in advance,
<br>
Stancho
<br>
</blockquote>
</body>
</html>

--------------000003080805010705010902--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EEF generated classes do not compile
Next Topic:EMF: Generated classes - Copyright details
Goto Forum:
  


Current Time: Sun Jul 25 23:30:26 GMT 2021

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

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

Back to the top