Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.search.ui.actions
Class TextSearchGroup

java.lang.Object
  extended by 

org.eclipse.ui.actions.ActionGroup
      extended by 
org.eclipse.search.ui.actions.TextSearchGroup

public class TextSearchGroup
extends ActionGroup

Action group that adds a sub-menu with text search actions to a context menu.

Since:
3.2

Constructor Summary
TextSearchGroup ( IEditorPart editor)
          Constructs a TextSearchGroup for adding actions to the context menu of the editor provided.
 
Method Summary
 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.
 
Methods inherited from class org.eclipse.ui.actions. ActionGroup
dispose, fillActionBars, getContext, setContext, updateActionBars
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextSearchGroup

public TextSearchGroup(
IEditorPart editor)
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 Detail

setMenuText

public void setMenuText(
String text)
Changes the text that is used for the submenu label. The default is "Search Text".

Parameters:
text - the text for the menu label.

setAppendToGroup

public void setAppendToGroup(
String groupID)
Changes the group where the submenu is appended to. The default is ITextEditorActionConstants.GROUP_FIND.

Parameters:
groupID - the group id to append to

fillContextMenu

public void fillContextMenu(
IMenuManager menu)
Description copied from class: ActionGroup
Adds the applicable actions to a context menu, based on the state of the ActionContext.

The default implementation does nothing. Subclasses may override or extend this method.

Overrides:
fillContextMenu in class ActionGroup
Parameters:
menu - the context menu manager

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire