Home » Archived » Visual Editor (VE) » Initial value parsing and double-sets
Initial value parsing and double-sets [message #101067] |
Tue, 02 August 2005 17:00 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Joel Kamentz![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=Joel.Kamentz%40sas.com) Messages: 30 Registered: July 2009 |
Member |
|
|
VE parses the code for initial values of labels and the like, which is nice.
However, I noticed that if your initialization code sets the value (the text
in a label, for example) twice, then the VE preview displays the first
value, not the second.
Reproduce:
create a JPanel, drop a label, duplicate the setText line and make the
second value different. No matter the amount of reparsing, VE always
previews the first value in the source, even though the true initial value
(as demonstrated by run as java bean) is the last set to take place.
This came up in a Swing panel, where I was attempting override a components
default preferred size calculation by setting the maximum value, calling
setPrefferedSize( getPreferredSize() ) and then setting the real initial
value.
Joel
|
|
|
Re: Initial value parsing and double-sets [message #101098 is a reply to message #101067] |
Tue, 02 August 2005 17:58 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Srimanth ![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=sgunturi%40us.ibm.com) Messages: 225 Registered: July 2009 |
Senior Member |
|
|
Hi Joel,
Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=49464 was made to
track this problem. Please add yourself on CC to track its progress.
Regards,
Sri.
Joel Kamentz wrote:
> VE parses the code for initial values of labels and the like, which is nice.
> However, I noticed that if your initialization code sets the value (the text
> in a label, for example) twice, then the VE preview displays the first
> value, not the second.
>
> Reproduce:
> create a JPanel, drop a label, duplicate the setText line and make the
> second value different. No matter the amount of reparsing, VE always
> previews the first value in the source, even though the true initial value
> (as demonstrated by run as java bean) is the last set to take place.
>
>
> This came up in a Swing panel, where I was attempting override a components
> default preferred size calculation by setting the maximum value, calling
> setPrefferedSize( getPreferredSize() ) and then setting the real initial
> value.
>
> Joel
>
>
|
|
|
Re: Initial value parsing and double-sets [message #610113 is a reply to message #101067] |
Tue, 02 August 2005 17:58 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Srimanth ![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=sgunturi%40us.ibm.com) Messages: 225 Registered: July 2009 |
Senior Member |
|
|
Hi Joel,
Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=49464 was made to
track this problem. Please add yourself on CC to track its progress.
Regards,
Sri.
Joel Kamentz wrote:
> VE parses the code for initial values of labels and the like, which is nice.
> However, I noticed that if your initialization code sets the value (the text
> in a label, for example) twice, then the VE preview displays the first
> value, not the second.
>
> Reproduce:
> create a JPanel, drop a label, duplicate the setText line and make the
> second value different. No matter the amount of reparsing, VE always
> previews the first value in the source, even though the true initial value
> (as demonstrated by run as java bean) is the last set to take place.
>
>
> This came up in a Swing panel, where I was attempting override a components
> default preferred size calculation by setting the maximum value, calling
> setPrefferedSize( getPreferredSize() ) and then setting the real initial
> value.
>
> Joel
>
>
|
|
|
Goto Forum:
Current Time: Fri Aug 16 20:18:32 GMT 2024
Powered by FUDForum. Page generated in 0.02926 seconds
|