public class TextSearchGroup extends ActionGroup
Constructor and Description |
---|
TextSearchGroup(IEditorPart editor)
Constructs a TextSearchGroup for adding actions to the context menu
of the editor provided.
|
Modifier and Type | Method and Description |
---|---|
void |
fillContextMenu(IMenuManager menu)
Adds the applicable actions to a context menu,
based on the state of the
ActionContext . |
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.
|
dispose, fillActionBars, getContext, setContext, updateActionBars
public TextSearchGroup(IEditorPart editor)
editor
- the editorpublic void setMenuText(String text)
text
- the text for the menu label.public void setAppendToGroup(String groupID)
groupID
- the group id to append topublic void fillContextMenu(IMenuManager menu)
ActionGroup
ActionContext
.
The default implementation does nothing. Subclasses may override or extend this method.
fillContextMenu
in class ActionGroup
menu
- the context menu manager
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.