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.
|
dispose, fillActionBars, getContext, setContext, updateActionBars
public TextSearchGroup(IEditorPart editor)
public void setMenuText(String text)
public void setAppendToGroup(String groupID)
public 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 managerGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.