neilcsmith-net commented on code in PR #9776:
URL: https://github.com/apache/netbeans/pull/9776#discussion_r4501253012


##########
ide/projectui/src/org/netbeans/modules/project/ui/actions/SetMainProject.java:
##########


Review Comment:
   I realise this was already a problem, but please fix the action state EDT 
access here.
   
   This _might_ be the only one of concern now.  I tried temporarily adding 
this code to `LookupSensitiveAction`
   
   ```java
       protected void firePropertyChange(String propertyName, Object oldValue, 
Object newValue) {
           if (RESULTS_LOCK != null) {
               synchronized (RESULTS_LOCK) {
                   if (initialized) {
                       assert EventQueue.isDispatchThread();
                   }
               }
           }
           super.firePropertyChange(propertyName, oldValue, newValue);
       }
   ```
   
   This also triggers in `FileAction` during background initialization of 
editor.  That should be before UI attachment so is hopefully not a concern.



-- 
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

Reply via email to