Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion bundles/org.eclipse.ui.navigator/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,16 @@
id="org.eclipse.ui.navigator.PluginDropAction">
</action>
</extension>

<extension
point="org.eclipse.ui.handlers">
<handler
commandId="org.eclipse.ui.edit.selectAll"
class="org.eclipse.ui.navigator.CommonNavigatorSelectAllHandler">
<activeWhen>
<with variable="activePartId">
<equals value="org.eclipse.ui.navigator.ProjectExplorer"/>
</with>
</activeWhen>
</handler>
</extension>
</plugin>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*******************************************************************************
* Copyright (c) 2003, 2026 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.navigator;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.handlers.HandlerUtil;

/**
* CommonNavigatorSelectAllHandler is the handler for the select all action.
*
* @since 3.14
*
*/
public class CommonNavigatorSelectAllHandler extends AbstractHandler {
@Override
public Object execute(ExecutionEvent event) {
IWorkbenchPart part = HandlerUtil.getActivePart(event);
if (part instanceof CommonNavigator navigator) {
navigator.getCommonViewer().getTree().selectAll();
}
return null;
}
}
Loading