Eclipse: How to see the generated code

3,791 views
Skip to first unread message

brunoais

unread,
Jan 18, 2018, 11:20:23 AM1/18/18
to Project Lombok
How do I do to see Lombok's generated code in eclipse itself?
I already installed the eclipse plugin but I have no idea how to see the code the way it is generated by lombok.

I know how to use the delombok (it is explained in the manual) but, as a programmer, I don't want to keep having temporary files around me just to be able to see how the code generated looks like, to see to what variable each method is linked to, to be able to find callers of a method and to be able to use IDE's refactoring system.

I've tried checking the options and buttons and none of them seem to be able to show or temporarily generate code so I can see and analyse.

www.infosistema.com | LinkedIn | Facebook | Vimeo

Please consider the environment before printing this e-mail.
The information transmitted in this electronic mail message is intended for the sole use of the person or entity to which it is addressed and may be confidential or legally protected. Non-authorized use, copy, retransmission or dissemination of the information contained in this message is strictly forbidden.

Marco Servetto

unread,
Jan 18, 2018, 12:29:37 PM1/18/18
to project...@googlegroups.com
The 'code' is not generated, the updated bytecode is the only think
(without delombok)
all the eclipse refactory should work out of the box. Can you make an
example when that is not the case?

On 16 January 2018 at 21:43, brunoais <bruno....@infosistema.com> wrote:
> How do I do to see Lombok's generated code in eclipse itself?
> I already installed the eclipse plugin but I have no idea how to see the
> code the way it is generated by lombok.
>
> I know how to use the delombok (it is explained in the manual) but, as a
> programmer, I don't want to keep having temporary files around me just to be
> able to see how the code generated looks like, to see to what variable each
> method is linked to, to be able to find callers of a method and to be able
> to use IDE's refactoring system.
>
> I've tried checking the options and buttons and none of them seem to be able
> to show or temporarily generate code so I can see and analyse.
>
> www.infosistema.com | LinkedIn | Facebook | Vimeo
>
> Please consider the environment before printing this e-mail.
> The information transmitted in this electronic mail message is intended for
> the sole use of the person or entity to which it is addressed and may be
> confidential or legally protected. Non-authorized use, copy, retransmission
> or dissemination of the information contained in this message is strictly
> forbidden.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Lombok" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to project-lombo...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Leo

unread,
Jan 20, 2018, 9:19:52 PM1/20/18
to Project Lombok
If you use maven , you could open the class file under target/classes and let eclipse decompile it.

The information contained in this e-mail may be confidential. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution or copying of this communication, or any of its contents, is strictly prohibited. If you have received it by mistake please let us know by e-mail immediately and delete it from your system. Many thanks.

 

La información contenida en este mensaje puede ser confidencial. Ha sido enviada para el uso exclusivo del destinatario(s) previsto. Si el lector de este mensaje no fuera el destinatario previsto, por el presente queda Ud. notificado que cualquier lectura, uso, publicación, diseminación, distribución o copiado de esta comunicación o su contenido está estrictamente prohibido. En caso de que Ud. hubiera recibido este mensaje por error le agradeceremos notificarnos por e-mail inmediatamente y eliminarlo de su sistema. Muchas gracias.


Reinier Zwitserloot

unread,
Mar 19, 2018, 5:16:02 AM3/19/18
to Project Lombok
We'd like to someday add a feature to the eclipse implementation where you get a button on the toolbar which opens a new read-only view which shows you the delomboked code of the open editor when you pressed it, or possibly even whatever editor is currently active, 'live' updated.

It's not there yet, so you need to use delombok.
Reply all
Reply to author
Forward
0 new messages