In Project Explorer, ensure "Select All" (Ctrl+A and menu) works reliably irrespective of first or subsequent selections.
Fixes #2739
Description: In the Project Explorer, the "Edit > Select All" menu item and Ctrl+A shortcut did not work reliably when a single project was selected. Specifically, pressing Ctrl+A after selecting a project for the first time had no effect. Only after clicking another project did Ctrl+A begin to work as expected.
Details of the fix:
- Added a KeyListener to the Tree widget to handle Ctrl+A directly, ensuring selection works even without command activation.
- Registered a IPartListener2 to activate the EDIT_SELECT_ALL command handler when the Project Explorer view becomes active, enabling the menu item.
- Deactivated the handler when the view is no longer active to avoid stale references.
Note : No-ops - These methods are required by the IPartListener2 interface though unused but must be implemented. Yeah - i just tried even if removed it works(not sure if it added some warnings).
Open eclipse freshly, open Project Explorer view. Select a project and ctrl+A to select all the projects.
Before fix(unable to select, next click on 2nd project then ctrl+A will be enabled)
After fix(able to select)
Test Results
3 018 files ±0 3 018 suites ±0 2h 15m 4s ⏱️ -21s 8 236 tests ±0 7 986 ✅ ±0 249 💤 ±0 1 ❌ ±0 23 628 runs ±0 22 833 ✅ ±0 794 💤 ±0 1 ❌ ±0
For more details on these failures, see this check.
Results for commit 5d468be9. ± Comparison against base commit 2d4334f0.
:recycle: This comment has been updated with latest results.
This pull request changes some projects for the first time in this development cycle. Therefore the following files need a version increment:
bundles/org.eclipse.ui.navigator/META-INF/MANIFEST.MF
An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.
Git patch
From 00affcbceaaa0f1547e02667148b1a209e31433a Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <[email protected]>
Date: Tue, 2 Dec 2025 11:27:07 +0000
Subject: [PATCH] Version bump(s) for 4.39 stream
diff --git a/bundles/org.eclipse.ui.navigator/META-INF/MANIFEST.MF b/bundles/org.eclipse.ui.navigator/META-INF/MANIFEST.MF
index e2e4391692..3a92eee523 100644
--- a/bundles/org.eclipse.ui.navigator/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.ui.navigator/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Plugin.name
Bundle-SymbolicName: org.eclipse.ui.navigator; singleton:=true
-Bundle-Version: 3.13.300.qualifier
+Bundle-Version: 3.13.400.qualifier
Bundle-Activator: org.eclipse.ui.internal.navigator.NavigatorPlugin
Bundle-Vendor: %Plugin.providerName
Bundle-Localization: plugin
--
2.51.2
Further information are available in Common Build Issues - Missing version increments.