Using a fresh local build, I have a very simple Java App which has few packages. I started the IDE in debug mode. When I
expand nodes in project tab, IDE becomes very unresponsive. I see traces from openide.explorer. See attached dumps.
Created attachment 67162 [details]
few thread dumps
updatePasteAction in AWT thread is perhaps the problem.
Can you attach project which causes the problems?
It was just a Java App, with very few java classes and a set of xml, schemas and dtd files. I do not have it now.
It may not be reproducible and that is why I attached the dump. Please do not make it incomplete as I do not have any
more input on this issue. This is basic as well as important to Netbeans and should be looked at carefully. You may want
to look into issue 143856 and issue 143861. They may be related.
It seems FolderNode needed significant time to extract PasteTypes from contents of your clipboard. Do you know what you
had in the clipboard? Anyway, passing to openide.loaders for evaluation.
I really do not know how to speedup clipboard operations. The only thing I can suggest is to not block AWT thread
while dealing with the clipboard. That would mean to replan the action update from AWT to some background thread in
one of the following places:
I doubt anything better can be done outside of explorer.
I am not sure if it is good idea to update action (or paste type) outside AWT thread. It would result in showing context
menu with disabled actions while another context click few second later on the same node would show the action enabled.
I think it is better to find out why PasteTypes extraction took so much time. Anyway, cannot reproduce, closing as works
for me. Please reopen with additional information how to reproduce.