mbien opened a new issue, #5165:
URL: https://github.com/apache/netbeans/issues/5165
### Apache NetBeans version
Apache NetBeans 16
### What happened
The `org.netbeans.modules.maven.hints.pom.HintsPanelLogic `and it's
`HintsPanel` have some issues noticing when their state changes.
how it seems to work:
- the logic polls all child panels twice per second and asks if something
changed
- based on that information it decides when to enable the apply button
- it also decides what to do on cancel or on ok
apply and cancel was hopefully fixed in #5009 for changes within the hint
panels itself.
whats left:
- if a hint is turned off and enabled again in the same session the hint
will be still off
- this can be also seen by looking at the apply button which won't switch
to enabled state when the hint is checked (-> logic doesn't know that something
changed)
workaround:
- restart NB
- or change something else in the options panel in addition to enabling the
hint (e.g warning to error)
### How to reproduce
1. open any maven hint panel

2. disable a hint + press ok
3. try to enable the same hint again + press ok
4. check again if it is still enabled (it isn't)
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
linux manjaro
### JDK
19.0.1
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
Yes
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists