The problem is that there're too much setters and getters messing up the source code editor.
I have to scroll up and down and distinguish where are the demarcation of the business methods.
Is there a plugin that I can hide or fold setters and getters?
I know there're some libraries can eliminate setters and getters by using annotations or AOP techniques, but this is not allowed in my project.
The reason for declaring the getters and setters private is to make the corresponding part of the object's abstract state (i.e. the values) private. That's largely independent of the decision to use getters and setters or not to hide the implementation types, prevent direct access, etc.
Thus: you avoid getters and setters by thinking in terms of behavior, not in terms of state. Getters/setters manipulate state, from the "outside" (by doing avail = purse.
In general, they should be public. If they are private they can only be called from within your class and, since you already have access to the private variables within your class, are redundant. The point of them is to allow access to these variables to other, outside, objects.
Vote: https://bugs.eclipse.org/bugs/show_bug.cgi?id=69486
Use Ctrl+O to navigate
Create section that separate specific part of code (like Bozho suggested).
Instead of scrolling the code You can use the outline view.
While You are working with Eclipse the mouse is not really needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With