You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Show Open/Close Project for mixed selections in Project Explorer
The ResourceMgmtActionProvider enablement expression required ALL
selected elements to adapt to IResource or IWorkingSet. This hid
Open/Close Project actions when the selection contained non-resource
elements (e.g., working set headers from Ctrl+A).
Changed the enablement to always activate the provider. The existing
fillContextMenu() logic via selectionToProjects() already filters to
applicable projects and only shows relevant actions.
Fixes#3790
Copy file name to clipboardExpand all lines: bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/ResourceMgmtActionProvider.java
Copy file name to clipboardExpand all lines: tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/resources/ResourceMgmtActionProviderTests.java
+86Lines changed: 86 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,67 @@ public void testFillContextMenu_openProjectNoBuilderSelection() throws CoreExcep
118
118
}
119
119
}
120
120
121
+
/**
122
+
* Test for a file selected together with an open project: Close Project must
123
+
* be both present and enabled. Regression test for the bug where
124
+
* selectionIsOfType(PROJECT) disabled the action for any mixed selection.
0 commit comments