Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » How Many "@generated Not" do you have in your Project ?(EMF Code Generation Tool)
How Many "@generated Not" do you have in your Project ? [message #786752] Mon, 30 January 2012 19:36 Go to next message
Andres Alvarez Mattos is currently offline Andres Alvarez MattosFriend
Messages: 12
Registered: December 2011
Location: Madrid
Junior Member
Hi everybody,

Sometimes it's useful to know how many "@generated not" I have in my project, and where they are through my code.

To this purpose I developed a plugin to have a view with all the EMF generated code java members annotated with a "@generated not" comment in my workspace

You can find the Indigo version:

http://marketplace.eclipse.org/content/emf-generated-not-markers-view

Or Helios version:

http://marketplace.eclipse.org/content/emf-generated-not-markers-view-helios-version

Any comments, improvements or suggestion are welcomed.
Re: How Many "@generated Not" do you have in your Project ? [message #787030 is a reply to message #786752] Tue, 31 January 2012 04:12 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Andres,

I achieve a similar thing with a custom Java compiler task tag:





Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 30.01.2012 20:36, schrieb Andres Alvarez Mattos:
> Hi everybody,
>
> Sometimes it's useful to know how many "@generated not" I have in my project, and where they are through my code.
>
> To this purpose I developed a plugin to have a view with all the EMF generated code java members annotated with a
> "@generated not" comment in my workspace
>
> You can find the Indigo version:
> http://marketplace.eclipse.org/content/emf-generated-not-markers-view
>
> Or Helios version:
> http://marketplace.eclipse.org/content/emf-generated-not-markers-view-helios-version
>
> Any comments, improvements or suggestion are welcomed.


Re: How Many "@generated Not" do you have in your Project ? [message #787031 is a reply to message #787030] Tue, 31 January 2012 04:14 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Sorry, the screenshot was missing. Here it is:<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=6953" alt=""><br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
<br>
Am 31.01.2012 05:12, schrieb Eike Stepper:
<blockquote cite="mid:jg7pnk$ods$1@news.eclipse.org" type="cite">Hi
Andres,
<br>
<br>
I achieve a similar thing with a custom Java compiler task tag:
<br>
<br>
<br>
<br>
<br>
<br>
Cheers
<br>
/Eike
<br>
<br>
----
<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a>
<br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a>
<br>
<br>
<br>
<br>
Am 30.01.2012 20:36, schrieb Andres Alvarez Mattos:
<br>
<blockquote type="cite">Hi everybody,
<br>
<br>
Sometimes it's useful to know how many "@generated not" I have
in my project, and where they are through my code.
<br>
<br>
To this purpose I developed a plugin to have a view with all the
EMF generated code java members annotated with a "@generated
not" comment in my workspace
<br>
<br>
You can find the Indigo version:
<br>
<a class="moz-txt-link-freetext" href="http://marketplace.eclipse.org/content/emf-generated-not-markers-view">http://marketplace.eclipse.org/content/emf-generated-not-markers-view</a>
<br>
<br>
Or Helios version:
<br>
<a class="moz-txt-link-freetext" href="http://marketplace.eclipse.org/content/emf-generated-not-markers-view-helios-version">http://marketplace.eclipse.org/content/emf-generated-not-markers-view-helios-version</a>
<br>
<br>
Any comments, improvements or suggestion are welcomed.
<br>
</blockquote>
</blockquote>
</body>
</html>
  • Attachment: fbhefdje.png
    (Size: 12.32KB, Downloaded 186 times)


Re: How Many &quot;@generated Not&quot; do you have in your Project ? [message #787087 is a reply to message #786752] Tue, 31 January 2012 06:08 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The Mint project provides a nice colouring in the Overview to indicate
EMF method provenance.

Regards

Ed Willink

On 30/01/2012 19:36, Andres Alvarez Mattos wrote:
> Hi everybody,
>
> Sometimes it's useful to know how many "@generated not" I have in my
> project, and where they are through my code.
>
> To this purpose I developed a plugin to have a view with all the EMF
> generated code java members annotated with a "@generated not" comment
> in my workspace
>
> You can find the Indigo version:
> http://marketplace.eclipse.org/content/emf-generated-not-markers-view
>
> Or Helios version:
> http://marketplace.eclipse.org/content/emf-generated-not-markers-view-helios-version
>
>
> Any comments, improvements or suggestion are welcomed.
Re: How Many &quot;@generated Not&quot; do you have in your Project ? [message #787217 is a reply to message #787030] Tue, 31 January 2012 09:39 Go to previous message
Andres Alvarez Mattos is currently offline Andres Alvarez MattosFriend
Messages: 12
Registered: December 2011
Location: Madrid
Junior Member
Hi Eike,

Thank you for you message. That is exactly what this plugin does. It creates a custom java tag, but solving the following problems:

With a custom java tag you would need to uncheck the "case sensitive task tag names" to cover all the "@generated not" tags, but this would also affects all the others custom tag the user has in his workspace/project. Or, if you create the custom tag as "@generated", you will need to create a new "Configuration" in the Tasks View to filter the "@generated not" tags, but again you will have the case sensitive problem.

Also, in the common Tasks view, you would only see, in the "Description" column, the name of your custom tag, and not the name of the java method or class annotated with the "@generated not".

What my plugin does is to create a "@generated" custom tag, and a new Custom View filtering all the "@generated not" tags (without the case sensitive problem), and show in the "Description" column the name of the affected java members.

Regards and thanks again,

Andres.
Previous Topic:[Texo] Problem creating opposite relations
Next Topic:Modeling Symposium
Goto Forum:
  


Current Time: Thu Apr 18 08:50:31 GMT 2024

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

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

Back to the top