Package org.eclipse.search.ui.actions
Class TextSearchGroup
java.lang.Object
org.eclipse.ui.actions.ActionGroup
org.eclipse.search.ui.actions.TextSearchGroup
Action group that adds a sub-menu with text search actions to a context menu.
- Since:
- 3.2
-
Constructor Summary
ConstructorDescriptionTextSearchGroup
(IEditorPart editor) Constructs a TextSearchGroup for adding actions to the context menu of the editor provided. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillContextMenu
(IMenuManager menu) Adds the applicable actions to a context menu, based on the state of theActionContext
.void
setAppendToGroup
(String groupID) Changes the group where the submenu is appended to.void
setMenuText
(String text) Changes the text that is used for the submenu label.Methods inherited from class org.eclipse.ui.actions.ActionGroup
dispose, fillActionBars, getContext, setContext, updateActionBars
-
Constructor Details
-
TextSearchGroup
Constructs a TextSearchGroup for adding actions to the context menu of the editor provided. The editor will be accessed for the purpose of determining the search string.- Parameters:
editor
- the editor
-
-
Method Details
-
setMenuText
Changes the text that is used for the submenu label. The default is "Search Text".- Parameters:
text
- the text for the menu label.
-
setAppendToGroup
Changes the group where the submenu is appended to. The default is ITextEditorActionConstants.GROUP_FIND.- Parameters:
groupID
- the group id to append to
-
fillContextMenu
Description copied from class:ActionGroup
Adds the applicable actions to a context menu, based on the state of theActionContext
.The default implementation does nothing. Subclasses may override or extend this method.
- Overrides:
fillContextMenu
in classActionGroup
- Parameters:
menu
- the context menu manager
-