eclipse.platform.ui icon indicating copy to clipboard operation
eclipse.platform.ui copied to clipboard

[performance] CloseUnrelatedProjectsAction.buildConnectedComponents(IProject[]) blocks UI startup

Open laeubi opened this issue 10 months ago • 0 comments

org.eclipse.ui.actions.CloseUnrelatedProjectsAction.buildConnectedComponents(IProject[]) calls the following code possibly in the UI thread:

https://github.com/eclipse-platform/eclipse.platform.ui/blob/0344b2b062792a7336fe40edaefe768595e1d3f0/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseUnrelatedProjectsAction.java#L83

this leads to all classpath containers of all projects to be resolved what is a costly operation and blocks the whole IDE startup procedure see here:

  • https://github.com/eclipse-pde/eclipse.pde/issues/1481

instead the computation should happen in the background and only the UI has to be updated once the operation succeeded.

laeubi avatar Dec 17 '24 09:12 laeubi