mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 15:45:25 +02:00
Add F1 for search view toolbar and menu actions
This commit is contained in:
parent
fa18bd792c
commit
b97896b61b
6 changed files with 28 additions and 1 deletions
|
@ -866,6 +866,28 @@ The list on the left shows the existing compile commands:
|
|||
<!-- Remote Search View -->
|
||||
<context id="srch0000">
|
||||
<description>This view shows you the results of a remote file search.</description>
|
||||
</context>
|
||||
|
||||
<context id="search_cancel">
|
||||
<description>This action cancels the search operation. If the search is not complete, partial results may be shown in
|
||||
the view.</description>
|
||||
</context>
|
||||
|
||||
<context id="search_remove_selected">
|
||||
<description>This action removes the selected matches from the view. If files are selected in the view, then all
|
||||
selected matches in that file will also be removed from the view.</description>
|
||||
</context>
|
||||
|
||||
<context id="search_remove_all">
|
||||
<description>This action removes all matches from the view.</description>
|
||||
</context>
|
||||
|
||||
<context id="search_history">
|
||||
<description>This action will bring up results for a previous search in the view.</description>
|
||||
</context>
|
||||
|
||||
<context id="search_clear_history">
|
||||
<description>This action will remove the results of all searches from the view.</description>
|
||||
</context>
|
||||
|
||||
<!-- Remote Shell View -->
|
||||
|
|
|
@ -40,6 +40,7 @@ public class SystemSearchClearHistoryAction extends SystemBaseAction {
|
|||
RSEUIPlugin.getDefault().getImageDescriptor(ISystemIconConstants.ICON_SEARCH_CLEAR_HISTORY_ID), shell);
|
||||
|
||||
this.searchView = searchView;
|
||||
RSEUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(this, RSEUIPlugin.HELPPREFIX + "search_clear_history");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,6 +18,7 @@ package org.eclipse.rse.ui.view.search;
|
|||
|
||||
import org.eclipse.jface.action.Action;
|
||||
import org.eclipse.jface.resource.ImageDescriptor;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
|
||||
/**
|
||||
* This is the history action for the remote system search view.
|
||||
|
@ -41,6 +42,7 @@ public class SystemSearchHistoryAction extends Action {
|
|||
setToolTipText(text);
|
||||
this.searchView = searchView;
|
||||
this.index = index;
|
||||
RSEUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(this, RSEUIPlugin.HELPPREFIX + "search_history");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,6 +41,7 @@ public class SystemSearchRemoveAllMatchesAction extends SystemBaseAction {
|
|||
shell);
|
||||
|
||||
this.searchView = searchView;
|
||||
RSEUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(this, RSEUIPlugin.HELPPREFIX + "search_remove_all");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,6 +41,7 @@ public class SystemSearchRemoveSelectedMatchesAction extends SystemBaseAction {
|
|||
shell);
|
||||
|
||||
this.searchView = searchView;
|
||||
RSEUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(this, RSEUIPlugin.HELPPREFIX + "search_remove_selected");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -40,7 +40,6 @@ import org.eclipse.jface.viewers.TableViewer;
|
|||
import org.eclipse.jface.viewers.TreeViewer;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.rse.core.SystemAdapterHelpers;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeListener;
|
||||
|
@ -157,6 +156,7 @@ public class SystemSearchViewPart extends ViewPart
|
|||
public CancelAction() {
|
||||
super(SystemResources.ACTION_CANCEL_SEARCH_LABEL, RSEUIPlugin.getDefault().getImageDescriptor(ISystemIconConstants.ICON_SYSTEM_STOP_ID));
|
||||
setToolTipText(SystemResources.ACTION_CANCEL_SEARCH_TOOLTIP);
|
||||
RSEUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(this, RSEUIPlugin.HELPPREFIX + "search_cancel");
|
||||
}
|
||||
|
||||
public void run() {
|
||||
|
|
Loading…
Add table
Reference in a new issue