Bound user interface elements should show as used?

Hi,

If the GUI Designer is set to generate code directly into the binary class
files, the bound elements show up as un-used in the bound class. I think
Idea should be able to show these as used - even though the code hasn't been
generated yet - simply because there is an association with a GUI Form. That
would prevent the yellow strips showing up on the right side of the Class
editor.

This may of course be something people like to see when designing their GUIs
but I don't find it useful to be told they are unused because it distracts
from the unbound Components in my class that really are unused. It is also
misleading because the Components aren't actually unused - they just haven't
been enhanced with initialisation code yet... code which we will never see
anyway!

Just a thought.

Thanks
scott


2 comments

Scott Curtis wrote:

Hi,

If the GUI Designer is set to generate code directly into the binary class
files, the bound elements show up as un-used in the bound class. I think
Idea should be able to show these as used - even though the code hasn't been
generated yet - simply because there is an association with a GUI Form. That
would prevent the yellow strips showing up on the right side of the Class
editor.

This may of course be something people like to see when designing their GUIs
but I don't find it useful to be told they are unused because it distracts
from the unbound Components in my class that really are unused. It is also
misleading because the Components aren't actually unused - they just haven't
been enhanced with initialisation code yet... code which we will never see
anyway!

Just a thought.

Thanks
scott

It actually works just as you've said. Namely all bound fields are
counted as if they'd had an initializer. Those may show up as unused if
you're not using them indeed (I mean you do not read values assigned by
byte code patch). And this definetely makes sense as it shows
unnecessary bindings.

--
Maxim Shafirov
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Yep, got it! Had a dumb day yesterday. I apologise.

:)

- scott

"Maxim Shafirov (JetBrains)" <max@jetbrains.com> wrote in message
news:cj9bhs$7d4$1@is.intellij.net...

Scott Curtis wrote:

Hi,

>

If the GUI Designer is set to generate code directly into the binary

class

files, the bound elements show up as un-used in the bound class. I think
Idea should be able to show these as used - even though the code hasn't

been

generated yet - simply because there is an association with a GUI Form.

That

would prevent the yellow strips showing up on the right side of the

Class

editor.

>

This may of course be something people like to see when designing their

GUIs

but I don't find it useful to be told they are unused because it

distracts

from the unbound Components in my class that really are unused. It is

also

misleading because the Components aren't actually unused - they just

haven't

been enhanced with initialisation code yet... code which we will never

see

anyway!

>

Just a thought.

>

Thanks
scott

>
>
It actually works just as you've said. Namely all bound fields are
counted as if they'd had an initializer. Those may show up as unused if
you're not using them indeed (I mean you do not read values assigned by
byte code patch). And this definetely makes sense as it shows
unnecessary bindings.

>

--
Maxim Shafirov
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"



0

Please sign in to leave a comment.