How to search for references or open call hierarchy on a getter or setter?

1,428 views
Skip to first unread message

fw.once

unread,
Dec 14, 2011, 7:47:12 AM12/14/11
to Project Lombok
Hi all,
Definitely Lombok "spice up" our Java code, but since there is no
explicit getters and setters any more, I can't search for references
on a field in a huge project. The only way I can think of is to search
something like ".getXXX()" or ".setXXX(" in full text.
I wonder how do you guys tackle this disadvantage?

fw.once

unread,
Dec 14, 2011, 8:12:32 AM12/14/11
to Project Lombok
I have got a clue...as I saw the outline view...
Just open the Outline View, and operate on the element you want in the
list.

Maybe this would be helpful to others like me.

Fabrizio Giudici

unread,
Dec 14, 2011, 6:22:24 PM12/14/11
to Project Lombok, fw.once
On Wed, 14 Dec 2011 14:12:32 +0100, fw.once <fwo...@gmail.com> wrote:

> I have got a clue...as I saw the outline view...
> Just open the Outline View, and operate on the element you want in the
> list.

Yes. With NetBeans the Navigator works pretty well.


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
fabrizio...@tidalwave.it
http://tidalwave.it - http://fabriziogiudici.it

Reinier Zwitserloot

unread,
Dec 19, 2011, 6:45:52 PM12/19/11
to project...@googlegroups.com
You can go via the outline view, otherwise, 'find callers' on the field, this will find the generated getX method, then hit the arrow thingie from there. There are 2 different call hierarchy thingies; this works with the one and not the other. I have no idea why there are two.
Reply all
Reply to author
Forward
0 new messages