I have moved the icons directory of my application. If I use the form editor to
change the icon classpath for the relevant gui elements I can see in the
properties tab a big red cross on the right side of the "icon" property and the
old (now invalid) classpath to the icon.
If I open the property editor the "OK" button is disabled, which is ok, as long
as the classpath is invalid.
Now after I chose the new (correct) classpath for the icon the "OK" button is
still disabled, which is a major bug - I can not update the icon classpath and
my application doesn't start!
Yes, you are right.
This one is regression of issue 17986,
and it must be fixed to 3.3.1 !
We don't have a fix yet but meanwhile if you want to change the icons
in cases where it is not possible please hit one of the sorting
buttons on the property sheet. The properties are resorted and the
icon can be changed.
I have "fixed" it by disabling the invalid icon feature in icon
editor. This solution is not optimal and more permanent solution
should be found (see task #19569).
The first diff makes sure that the PropertyDialogManager listens on
the env before getCustomEditor() is called because the IconEditor in
getCustomEditor calls setState(STATE_NEEDS_VALIDATION). This is change
is very low risk since it is just move of the attachment of the
listener before getCustomEditor call. It should have no impact on
other editors than IconEditor:
The second diff disables invalid state in IconEditor. So the editor
will use just STATE_VALID and STATE_NEEDS_VALIDATION. Those two states
do not result in disabling the Ok button which was the main problem.
The bug was present also in release330 so there was no way to rollback
any changes. It was only discovered this late.
Approved by QA.
Integrated into release33.
verified in [nb3.3.1_rc2](20020121) && [nb_dev](20020121)
Resolved for 3.4.x or earlier, no new info since then -> closing.