Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Generation of copyright statements
Generation of copyright statements [message #146396] Mon, 13 August 2007 14:32 Go to next message
Andreas Werner is currently offline Andreas WernerFriend
Messages: 55
Registered: July 2009
Member
Hi,

I wanted to add some copyright statements into my generated gmf editor sources.

Is there any possibility to do this? (Of course supported through GMF! ;))

In gmfgen the Gen Editor node has such a property to set a Copyright Text,
but I can see no effect after regeneration!?

Andreas
Re: Generation of copyright statements [message #146404 is a reply to message #146396] Mon, 13 August 2007 14:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Andreas,

JMerge will not modify an existing header comment on a file, so you need
to set your copyright before you generate the files or delete all the
files and regenerate them.


Andreas Werner wrote:
> Hi,
>
> I wanted to add some copyright statements into my generated gmf editor
> sources.
> Is there any possibility to do this? (Of course supported through GMF!
> ;))
>
> In gmfgen the Gen Editor node has such a property to set a Copyright
> Text, but I can see no effect after regeneration!?
>
> Andreas
>
>
Re: Generation of copyright statements [message #146417 is a reply to message #146404] Mon, 13 August 2007 14:52 Go to previous messageGo to next message
Andreas Werner is currently offline Andreas WernerFriend
Messages: 55
Registered: July 2009
Member
Hello Ed,

But in my generated editor sources there are no header comments before the
package statement at all!
Or will the generated comment be applied right before the class statement?

By the way in EMF there is a comment generated before the package statement
containing a copyright statement, that is defined in the genmodel!

Andreas

> Andreas,
>
> JMerge will not modify an existing header comment on a file, so you
> need to set your copyright before you generate the files or delete all
> the files and regenerate them.
>
> Andreas Werner wrote:
>
>> Hi,
>>
>> I wanted to add some copyright statements into my generated gmf
>> editor
>> sources.
>> Is there any possibility to do this? (Of course supported through
>> GMF!
>> ;))
>> In gmfgen the Gen Editor node has such a property to set a Copyright
>> Text, but I can see no effect after regeneration!?
>>
>> Andreas
>>
Re: Generation of copyright statements [message #146423 is a reply to message #146417] Mon, 13 August 2007 15:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Andreas,

I see. I just assumed GMF worked the same way. I guess not...


Andreas Werner wrote:
> Hello Ed,
>
> But in my generated editor sources there are no header comments before
> the package statement at all!
> Or will the generated comment be applied right before the class
> statement?
>
> By the way in EMF there is a comment generated before the package
> statement containing a copyright statement, that is defined in the
> genmodel!
>
> Andreas
>
>> Andreas,
>>
>> JMerge will not modify an existing header comment on a file, so you
>> need to set your copyright before you generate the files or delete all
>> the files and regenerate them.
>>
>> Andreas Werner wrote:
>>
>>> Hi,
>>>
>>> I wanted to add some copyright statements into my generated gmf
>>> editor
>>> sources.
>>> Is there any possibility to do this? (Of course supported through
>>> GMF!
>>> ;))
>>> In gmfgen the Gen Editor node has such a property to set a Copyright
>>> Text, but I can see no effect after regeneration!?
>>>
>>> Andreas
>>>
>
>
Re: Generation of copyright statements [message #146489 is a reply to message #146396] Tue, 14 August 2007 09:20 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

There is a dedicated property in gmfgen model -
GenEditorGenerator.copyrightText.

Andreas Werner wrote:
> Hi,
>
> I wanted to add some copyright statements into my generated gmf editor
> sources.
> Is there any possibility to do this? (Of course supported through GMF! ;))
>
> In gmfgen the Gen Editor node has such a property to set a Copyright
> Text, but I can see no effect after regeneration!?
>
> Andreas
>
>
Previous Topic:Usage of "connector popups"
Next Topic:Label offsets are ignored
Goto Forum:
  


Current Time: Sun Nov 03 12:10:28 GMT 2024

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

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

Back to the top