Bug 26618 - [render] Show property node to group getter/setter and field
Summary: [render] Show property node to group getter/setter and field
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P4 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 36121 80095 80097 147748 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-18 17:36 EST by David J. Orme CLA
Modified: 2006-06-23 10:49 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David J. Orme CLA 2002-11-18 17:36:51 EST
Sometimes I just want to see what properties a class supports and don't care
about all the verbose nonsense Java makes you do in order to create a
read/write/bound Java Bean property.  It's just amazing how much boilerplate
code you have to put into a class in order for it to support all the JavaBean
property features--and all of that boilerplate code detracts from being able to
easily read a class and understand what it does by simply adding a lot of noise
that must be disregarded to the data stream.  Although we can't change the Java
language to have a more compact component programming model, we can provide
ennhancements to the standard Eclipse views to make the existing one easier to
deal with.

One way to do this might be to be able to click a toggle button in the title bar
of the /outline|package|members/ view to filter away all getters, setters,
propertychangesupport, etc. (all the "noise").

In their place, abstracted property fields could be displayed along with
annotated icons showing read/write/bound indicators to specify what features are
available on the specified property.

Navigation could be configurable to: 
 - Go to the field
 - Go to the getter
 - Go to the setter
 - Go to the property change support
 - Pop up a menu with the above choices and allow the developer to choose.
Comment 1 Dirk Baeumer CLA 2002-11-19 05:34:53 EST
Good suggestion. 

Time permitted for 2.1
Comment 2 David J. Orme CLA 2002-11-19 11:05:38 EST
Another nice feature:

When the "show only selected source" button is pressed and a property is 
selected, display any of (user configurable choices):

 - The field
 - The getter
 - The setter
 - The propertychangesupport

I suggest making these a bunch of check boxes on the config screen so that the 
programmer can see any permutations of the above at once.
Comment 3 Dirk Baeumer CLA 2003-04-28 05:41:50 EDT
*** Bug 36121 has been marked as a duplicate of this bug. ***
Comment 4 Benjamin Hill CLA 2004-02-07 11:04:06 EST
Also like this suggestion.  Miss the same feature from another major editor, 
where it would group the getter/setter/variable together into a single item in 
the outline view if the name of the method and variable matched the standard 
getter/setter convention.  Greatly cuts down on clutter.
Comment 5 Dirk Baeumer CLA 2004-12-03 09:40:42 EST
*** Bug 80097 has been marked as a duplicate of this bug. ***
Comment 6 Dirk Baeumer CLA 2004-12-03 09:41:35 EST
If we provide these groups we have to adapt the corresponding refactorings as
well. For example renaming a property should rename the getter, setter and the
property.
Comment 7 Dirk Baeumer CLA 2004-12-03 09:44:21 EST
*** Bug 80095 has been marked as a duplicate of this bug. ***
Comment 8 Dirk Baeumer CLA 2004-12-03 09:45:47 EST
From bug 80095

Intellij IDEA has a feature to group properties with associated field. See 
the attached picture for an example of the getter/setters grouped with the 
name field.

I marked 80095 as a duplicate of this one since the technical implementation
behind it would be the same.

Comment 9 Dani Megert CLA 2006-06-20 03:12:55 EDT
*** Bug 147748 has been marked as a duplicate of this bug. ***
Comment 10 Prashant Deva CLA 2006-06-20 03:17:38 EDT
Heh, such a simple feature request and it was filed in 2002! Yet nobody has done anything remotely about it.

I mean how much effort does it take to just group getters and setters as properties in the outline view?
Comment 11 Martin Aeschlimann CLA 2006-06-20 12:59:42 EDT
Help is always welcome, as simple the features may be :-)
Comment 12 Prashant Deva CLA 2006-06-20 13:26:40 EDT
I am willing to contribute if you promise to put it in 3.2 :)
Comment 13 Dani Megert CLA 2006-06-20 13:28:48 EDT
You problably meant 3.3. 3.2 is already frozen.
Comment 14 Dani Megert CLA 2006-06-20 13:30:27 EDT
Of course we would add the feature for 3.3 if we get a high quality patch in time.
Comment 15 Prashant Deva CLA 2006-06-20 13:32:56 EDT
I guess you mean 3.2 in your last post. 3.3 is a year away. Enough time to code it yourself ;)
Comment 16 Dani Megert CLA 2006-06-20 13:37:16 EDT
No, I meant what I wrote: 3.3, as said 3.2 is frozen.