Open errael opened 2 years ago
Fix for the NPE in #4703 .
@lkishalmi , @sdedic Since I'm not sure what is proper behavior... Even the NPE fix could be handled differently by coming up with "nothing selected".
@mbien , can this be reopened? The "NPE" is fixed but the "visually inaccurate state" is pending; need some feedback on what is proper behavior. The opening comment outlines some inconsistencies in the dialog, and I'm not sure what it's supposed to do.
sure
Apache NetBeans version
Apache NetBeans 15
What happened
NPE and inconsistent visual state
How to reproduce
gradle projects are created with NewProject > JavaWithGradle > JavaClassLibrary
Get to this dialog with
GradleProject > properties > Build > BuildActions
First note that although nothing is selected in the
ConfiguredActions
list, both the Disable and Reset buttons are enabled. Note that when this first comes up is the only time the configuration details shows up without a ConfiguredActions selection. If you select an action, then deselect, CTRL click, you will seeNo Selected Action
. I like seeing the details area when it first comes up to get an idea of what you can do with an action. But if only came up when something was selected, then there would be no issue with the Reset button.The rest of this is about stuff that seems/looks wrong, but I'm not familiar enough with this dialog to be certain. For example, what does boldface mean in
Configured Actions
list? Should some actions start in a disabled state or is there a reason that Restore doesn't restore?Configured Actions
list inconsistentBuild Actions
dialogOverride in Configuration
combo selectContinuous Mode
Configure Action
combo selectbuild
Configure Action
combo selectdebug
debug
is in boldfaceBuild Actions
dialogOverride in Configuration
combo selectContinuous Mode
debug
is not boldfaceStarting with fresh project
Build Actions
dialogOverride in Configuration
combo selectContinuous Mode
Configure Action
combo selectbuild
Configure Action
combo selectdebug
build
,Disable
debug
,Disable
build
,Restore
debug
,Restore
debug
is not Restoreddebug
still selected, clickReset
Configure Action
combo selectdebug
debug
, DisableOverride in Configuration
combo selectContinuous Mode
debug
, clickReset
Configure Action
combo selectdebug
debug
is still disabled after reset 12 and 19 are inconsistent.Following doesn't really belong in this report
also delete source
Did this work correctly in an earlier version?
No / Don't know
Operating System
Linux harmony 5.19.0-76051900-generic #202207312230~1660780566~22.04~9d60db1
JDK
openjdk version "11.0.2" 2019-01-15
Apache NetBeans packaging
Own source build
Anything else
No response
Are you willing to submit a pull request?
No
Code of Conduct
Yes