mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 23:55:26 +02:00
[159969] - Rename should be bound to the F2 key. The rename action has been set as a global action for Team view as well.
This commit is contained in:
parent
c605ff0a4e
commit
98a9d8e922
1 changed files with 8 additions and 0 deletions
|
@ -78,6 +78,7 @@ import org.eclipse.rse.ui.SystemResources;
|
|||
import org.eclipse.rse.ui.actions.ISystemAction;
|
||||
import org.eclipse.rse.ui.actions.SystemCollapseAllAction;
|
||||
import org.eclipse.rse.ui.actions.SystemCommonDeleteAction;
|
||||
import org.eclipse.rse.ui.actions.SystemCommonRenameAction;
|
||||
import org.eclipse.rse.ui.actions.SystemCommonSelectAllAction;
|
||||
import org.eclipse.rse.ui.actions.SystemNewProfileAction;
|
||||
import org.eclipse.rse.ui.actions.SystemSubMenuManager;
|
||||
|
@ -783,6 +784,13 @@ public class SystemTeamViewPart
|
|||
actionBars.getToolBarManager().add(refreshAllAction);
|
||||
|
||||
actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), getDeleteAction(selection));
|
||||
|
||||
// add rename action
|
||||
SystemCommonRenameAction renameAction = new SystemCommonRenameAction(getShell(), this);
|
||||
renameAction.setViewer(getViewer());
|
||||
// renameAction.setSelection(selection);
|
||||
actionBars.setGlobalActionHandler(ActionFactory.RENAME.getId(), renameAction);
|
||||
|
||||
SystemCommonSelectAllAction selAllAction = new SystemCommonSelectAllAction(getShell(), treeViewer, treeViewer);
|
||||
actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), selAllAction);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue