Java Code Examples for org.eclipse.search.ui.IContextMenuConstants#GROUP_SEARCH
The following examples show how to use
org.eclipse.search.ui.IContextMenuConstants#GROUP_SEARCH .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DeclarationsSearchGroup.java From xds-ide with Eclipse Public License 1.0 | 6 votes |
@Override public void fillContextMenu(IMenuManager menu) { super.fillContextMenu(menu); IMenuManager incomingMenu = menu; IMenuManager declarationsMenu = new MenuManager(Messages.DeclarationsSearchGroup_Declarations, IContextMenuConstants.GROUP_SEARCH); if (editor != null){ menu.appendToGroup(ITextEditorActionConstants.GROUP_FIND, declarationsMenu); } else { incomingMenu.appendToGroup(IContextMenuConstants.GROUP_SEARCH, declarationsMenu); } incomingMenu = declarationsMenu; incomingMenu.add(findDeclarationsAction); incomingMenu.add(findDeclarationsProjectAction); }
Example 2
Source File: ReferencesSearchGroup.java From xds-ide with Eclipse Public License 1.0 | 6 votes |
@Override public void fillContextMenu(IMenuManager menu) { super.fillContextMenu(menu); IMenuManager incomingMenu = menu; IMenuManager declarationsMenu = new MenuManager(Messages.ReferencesSearchGroup_References, IContextMenuConstants.GROUP_SEARCH); if (editor != null){ menu.appendToGroup(ITextEditorActionConstants.GROUP_FIND, declarationsMenu); } else { incomingMenu.appendToGroup(IContextMenuConstants.GROUP_SEARCH, declarationsMenu); } incomingMenu = declarationsMenu; incomingMenu.add(findReferencesAction); incomingMenu.add(findReferencesProjectAction); }