当前位置: 首页>>代码示例>>Java>>正文


Java ITextEditorActionConstants.GROUP_FIND属性代码示例

本文整理汇总了Java中org.eclipse.ui.texteditor.ITextEditorActionConstants.GROUP_FIND属性的典型用法代码示例。如果您正苦于以下问题:Java ITextEditorActionConstants.GROUP_FIND属性的具体用法?Java ITextEditorActionConstants.GROUP_FIND怎么用?Java ITextEditorActionConstants.GROUP_FIND使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.ui.texteditor.ITextEditorActionConstants的用法示例。


在下文中一共展示了ITextEditorActionConstants.GROUP_FIND属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ImplementorsSearchGroup

/**
 * Note: This constructor is for internal use only. Clients should not call this constructor.
 * @param editor the Java editor
 *
 * @noreference This constructor is not intended to be referenced by clients.
 */
public ImplementorsSearchGroup(JavaEditor editor) {
	fEditor= editor;
	fSite= fEditor.getSite();
	fGroupId= ITextEditorActionConstants.GROUP_FIND;

	fFindImplementorsAction= new FindImplementorsAction(fEditor);
	fFindImplementorsAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_IMPLEMENTORS_IN_WORKSPACE);
	fEditor.setAction("SearchImplementorsInWorkspace", fFindImplementorsAction); //$NON-NLS-1$

	fFindImplementorsInProjectAction= new FindImplementorsInProjectAction(fEditor);
	fFindImplementorsInProjectAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_IMPLEMENTORS_IN_PROJECT);
	fEditor.setAction("SearchImplementorsInProject", fFindImplementorsInProjectAction); //$NON-NLS-1$

	fFindImplementorsInWorkingSetAction= new FindImplementorsInWorkingSetAction(fEditor);
	fFindImplementorsInWorkingSetAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_IMPLEMENTORS_IN_WORKING_SET);
	fEditor.setAction("SearchImplementorsInWorkingSet", fFindImplementorsInWorkingSetAction); //$NON-NLS-1$
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:23,代码来源:ImplementorsSearchGroup.java

示例2: WriteReferencesSearchGroup

/**
 * Note: This constructor is for internal use only. Clients should not call this constructor.
 * @param editor the Java editor
 *
 * @noreference This constructor is not intended to be referenced by clients.
 */
public WriteReferencesSearchGroup(JavaEditor editor) {
	fEditor= editor;
	fSite= fEditor.getSite();
	fGroupId= ITextEditorActionConstants.GROUP_FIND;

	fFindWriteReferencesAction= new FindWriteReferencesAction(fEditor);
	fFindWriteReferencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_WRITE_ACCESS_IN_WORKSPACE);
	fEditor.setAction("SearchWriteAccessInWorkspace", fFindWriteReferencesAction); //$NON-NLS-1$

	fFindWriteReferencesInProjectAction= new FindWriteReferencesInProjectAction(fEditor);
	fFindWriteReferencesInProjectAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_WRITE_ACCESS_IN_PROJECT);
	fEditor.setAction("SearchWriteAccessInProject", fFindWriteReferencesInProjectAction); //$NON-NLS-1$

	fFindWriteReferencesInHierarchyAction= new FindWriteReferencesInHierarchyAction(fEditor);
	fFindWriteReferencesInHierarchyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_WRITE_ACCESS_IN_HIERARCHY);
	fEditor.setAction("SearchWriteAccessInHierarchy", fFindWriteReferencesInHierarchyAction); //$NON-NLS-1$

	fFindWriteReferencesInWorkingSetAction= new FindWriteReferencesInWorkingSetAction(fEditor);
	fFindWriteReferencesInWorkingSetAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_WRITE_ACCESS_IN_WORKING_SET);
	fEditor.setAction("SearchWriteAccessInWorkingSet", fFindWriteReferencesInWorkingSetAction); //$NON-NLS-1$
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:27,代码来源:WriteReferencesSearchGroup.java

示例3: DeclarationsSearchGroup

/**
 * Note: This constructor is for internal use only. Clients should not call this constructor.
 *
 * @param editor the Java editor
 *
 * @noreference This constructor is not intended to be referenced by clients.
 */
public DeclarationsSearchGroup(JavaEditor editor) {
	Assert.isNotNull(editor);
	fEditor= editor;
	fSite= fEditor.getSite();
	fGroupId= ITextEditorActionConstants.GROUP_FIND;

	fFindDeclarationsAction= new FindDeclarationsAction(fEditor);
	fFindDeclarationsAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_WORKSPACE);
	fEditor.setAction("SearchDeclarationsInWorkspace", fFindDeclarationsAction); //$NON-NLS-1$

	fFindDeclarationsInProjectAction= new FindDeclarationsInProjectAction(fEditor);
	fFindDeclarationsInProjectAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_PROJECTS);
	fEditor.setAction("SearchDeclarationsInProjects", fFindDeclarationsInProjectAction); //$NON-NLS-1$

	fFindDeclarationsInHierarchyAction= new FindDeclarationsInHierarchyAction(fEditor);
	fFindDeclarationsInHierarchyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_HIERARCHY);
	fEditor.setAction("SearchDeclarationsInHierarchy", fFindDeclarationsInHierarchyAction); //$NON-NLS-1$

	fFindDeclarationsInWorkingSetAction= new FindDeclarationsInWorkingSetAction(fEditor);
	fFindDeclarationsInWorkingSetAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_DECLARATIONS_IN_WORKING_SET);
	fEditor.setAction("SearchDeclarationsInWorkingSet", fFindDeclarationsInWorkingSetAction); //$NON-NLS-1$
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:29,代码来源:DeclarationsSearchGroup.java

示例4: ReadReferencesSearchGroup

/**
 * Note: This constructor is for internal use only. Clients should not call this constructor.
 * @param editor the Java editor
 *
 * @noreference This constructor is not intended to be referenced by clients.
 */
public ReadReferencesSearchGroup(JavaEditor editor) {
	fEditor= editor;
	fSite= fEditor.getSite();
	fGroupId= ITextEditorActionConstants.GROUP_FIND;

	fFindReadReferencesAction= new FindReadReferencesAction(fEditor);
	fFindReadReferencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_WRITE_ACCESS_IN_WORKSPACE);
	fEditor.setAction("SearchReadAccessInWorkspace", fFindReadReferencesAction); //$NON-NLS-1$

	fFindReadReferencesInProjectAction= new FindReadReferencesInProjectAction(fEditor);
	fFindReadReferencesInProjectAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_READ_ACCESS_IN_PROJECT);
	fEditor.setAction("SearchReadAccessInProject", fFindReadReferencesInProjectAction); //$NON-NLS-1$

	fFindReadReferencesInHierarchyAction= new FindReadReferencesInHierarchyAction(fEditor);
	fFindReadReferencesInHierarchyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_WRITE_ACCESS_IN_HIERARCHY);
	fEditor.setAction("SearchReadAccessInHierarchy", fFindReadReferencesInHierarchyAction); //$NON-NLS-1$

	fFindReadReferencesInWorkingSetAction= new FindReadReferencesInWorkingSetAction(fEditor);
	fFindReadReferencesInWorkingSetAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_WRITE_ACCESS_IN_WORKING_SET);
	fEditor.setAction("SearchReadAccessInWorkingSet", fFindReadReferencesInWorkingSetAction); //$NON-NLS-1$
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:27,代码来源:ReadReferencesSearchGroup.java

示例5: ReferencesSearchGroup

/**
 * Note: This constructor is for internal use only. Clients should not call this constructor.
 * @param editor the Java editor
 *
 * @noreference This constructor is not intended to be referenced by clients.
 */
public ReferencesSearchGroup(JavaEditor editor) {
	Assert.isNotNull(editor);
	fEditor= editor;
	fSite= fEditor.getSite();
	fGroupId= ITextEditorActionConstants.GROUP_FIND;

	fFindReferencesAction= new FindReferencesAction(editor);
	fFindReferencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_WORKSPACE);
	fEditor.setAction("SearchReferencesInWorkspace", fFindReferencesAction); //$NON-NLS-1$

	fFindReferencesInProjectAction= new FindReferencesInProjectAction(fEditor);
	fFindReferencesInProjectAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_PROJECT);
	fEditor.setAction("SearchReferencesInProject", fFindReferencesInProjectAction); //$NON-NLS-1$

	fFindReferencesInHierarchyAction= new FindReferencesInHierarchyAction(fEditor);
	fFindReferencesInHierarchyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_HIERARCHY);
	fEditor.setAction("SearchReferencesInHierarchy", fFindReferencesInHierarchyAction); //$NON-NLS-1$

	fFindReferencesInWorkingSetAction= new FindReferencesInWorkingSetAction(fEditor);
	fFindReferencesInWorkingSetAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_WORKING_SET);
	fEditor.setAction("SearchReferencesInWorkingSet", fFindReferencesInWorkingSetAction); //$NON-NLS-1$
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:28,代码来源:ReferencesSearchGroup.java

示例6: fillContextMenu

public void fillContextMenu(IMenuManager menu) {
		super.fillContextMenu(menu);
		
		if(PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.SEARCH_USE_REDUCED_MENU)) {
			fReferencesGroup.fillContextMenu(menu);
//			fDeclarationsGroup.fillContextMenu(menu);
//
//			if (fEditor == null) {
////				fImplementorsGroup.fillContextMenu(menu);
//				fReadAccessGroup.fillContextMenu(menu);
//				fWriteAccessGroup.fillContextMenu(menu);
//			}
		} else {
			IMenuManager target= menu;
			IMenuManager searchSubMenu= null;
			if (fEditor != null) {
				String groupName= SearchMessages.group_search; 
				searchSubMenu= new MenuManager(groupName, ITextEditorActionConstants.GROUP_FIND);
				searchSubMenu.add(new GroupMarker(ITextEditorActionConstants.GROUP_FIND));
				target= searchSubMenu;
			}
			
			fReferencesGroup.fillContextMenu(target);
//			fDeclarationsGroup.fillContextMenu(target);
////			fImplementorsGroup.fillContextMenu(target);
//			fReadAccessGroup.fillContextMenu(target);
//			fWriteAccessGroup.fillContextMenu(target);
			
			if (searchSubMenu != null) {
//				fOccurrencesGroup.fillContextMenu(target);
//				searchSubMenu.add(new Separator());
			}
			
			// no other way to find out if we have added items.
			if (searchSubMenu != null && searchSubMenu.getItems().length > 2) {		
				menu.appendToGroup(ITextEditorActionConstants.GROUP_FIND, searchSubMenu);
			}
		}
	}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:39,代码来源:TypeScriptSearchActionGroup.java

示例7: ReferencesSearchGroup

/**
 * Note: This constructor is for internal use only. Clients should not call
 * this constructor.
 * 
 * @param editor
 *            the JavaScript editor
 */
public ReferencesSearchGroup(TypeScriptEditor editor) {
	Assert.isNotNull(editor);
	fEditor = editor;
	fSite = fEditor.getSite();
	fGroupId = ITextEditorActionConstants.GROUP_FIND;

	// fFindReferencesAction= new FindReferencesAction(editor);
	// fFindReferencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_WORKSPACE);
	// fEditor.setAction("SearchReferencesInWorkspace",
	// fFindReferencesAction); //$NON-NLS-1$

	fFindReferencesInProjectAction = new FindReferencesInProjectAction(fEditor);
	fFindReferencesInProjectAction
			.setActionDefinitionId(ITypeScriptEditorActionDefinitionIds.SEARCH_REFERENCES_IN_PROJECT);
	fEditor.setAction("SearchReferencesInProject", fFindReferencesInProjectAction); //$NON-NLS-1$

	// fFindReferencesInHierarchyAction= new
	// FindReferencesInHierarchyAction(fEditor);
	// fFindReferencesInHierarchyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_HIERARCHY);
	// fEditor.setAction("SearchReferencesInHierarchy",
	// fFindReferencesInHierarchyAction); //$NON-NLS-1$

	// fFindReferencesInWorkingSetAction= new
	// FindReferencesInWorkingSetAction(fEditor);
	// fFindReferencesInWorkingSetAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_REFERENCES_IN_WORKING_SET);
	// fEditor.setAction("SearchReferencesInWorkingSet",
	// fFindReferencesInWorkingSetAction); //$NON-NLS-1$
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:35,代码来源:ReferencesSearchGroup.java

示例8: fillContextMenu

@Override
public void fillContextMenu(IMenuManager menu) {
	super.fillContextMenu(menu);

	if(PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.SEARCH_USE_REDUCED_MENU)) {
		fReferencesGroup.fillContextMenu(menu);
		fDeclarationsGroup.fillContextMenu(menu);

		if (fEditor == null) {
			fImplementorsGroup.fillContextMenu(menu);
			fReadAccessGroup.fillContextMenu(menu);
			fWriteAccessGroup.fillContextMenu(menu);
		}
	} else {
		IMenuManager target= menu;
		IMenuManager searchSubMenu= null;
		if (fEditor != null) {
			String groupName= SearchMessages.group_search;
			searchSubMenu= new MenuManager(groupName, ITextEditorActionConstants.GROUP_FIND);
			searchSubMenu.add(new GroupMarker(ITextEditorActionConstants.GROUP_FIND));
			target= searchSubMenu;
		}

		fReferencesGroup.fillContextMenu(target);
		fDeclarationsGroup.fillContextMenu(target);
		fImplementorsGroup.fillContextMenu(target);
		fReadAccessGroup.fillContextMenu(target);
		fWriteAccessGroup.fillContextMenu(target);

		if (searchSubMenu != null) {
			fOccurrencesGroup.fillContextMenu(target);
			searchSubMenu.add(new Separator());
		}

		// no other way to find out if we have added items.
		if (searchSubMenu != null && searchSubMenu.getItems().length > 2) {
			menu.appendToGroup(ITextEditorActionConstants.GROUP_FIND, searchSubMenu);
		}
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:40,代码来源:JavaSearchActionGroup.java

示例9: OccurrencesSearchGroup

/**
	 * Note: This constructor is for internal use only. Clients should not call this constructor.
	 *
	 * @param editor the Java editor
	 *
	 * @noreference This constructor is not intended to be referenced by clients.
	 */
	public OccurrencesSearchGroup(JavaEditor editor) {
		fEditor= editor;
		fSite= fEditor.getSite();
		fGroupId= ITextEditorActionConstants.GROUP_FIND;

		fOccurrencesInFileAction= new FindOccurrencesInFileAction(fEditor);
		fOccurrencesInFileAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_OCCURRENCES_IN_FILE);
		// Need to reset the label
		fOccurrencesInFileAction.setText(SearchMessages.Search_FindOccurrencesInFile_shortLabel);
		fEditor.setAction("SearchOccurrencesInFile", fOccurrencesInFileAction); //$NON-NLS-1$

		fExceptionOccurrencesAction= new FindExceptionOccurrencesAction(fEditor);
		fExceptionOccurrencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_EXCEPTION_OCCURRENCES_IN_FILE);
		fEditor.setAction("SearchExceptionOccurrences", fExceptionOccurrencesAction); //$NON-NLS-1$

		fFindImplementorOccurrencesAction= new FindImplementOccurrencesAction(fEditor);
		fFindImplementorOccurrencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_IMPLEMENT_OCCURRENCES_IN_FILE);
		fEditor.setAction("SearchImplementOccurrences", fFindImplementorOccurrencesAction); //$NON-NLS-1$

		fBreakContinueTargetOccurrencesAction= new FindBreakContinueTargetOccurrencesAction(fEditor);
		fBreakContinueTargetOccurrencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_BREAK_CONTINUE_TARGET_OCCURRENCES);
		fEditor.setAction("BreakContinueTargetOccurrences", fBreakContinueTargetOccurrencesAction); //$NON-NLS-1$

		fMethodExitOccurrencesAction= new FindMethodExitOccurrencesAction(fEditor);
		fMethodExitOccurrencesAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SEARCH_METHOD_EXIT_OCCURRENCES);
		fEditor.setAction("ExitOccurrencesAction", fMethodExitOccurrencesAction); //$NON-NLS-1$

//
//		ISelectionProvider provider= fSite.getSelectionProvider();
//		ISelection selection= provider.getSelection();
//
//		registerAction(fOccurrencesInFileAction, provider, selection);
//		registerAction(fExceptionOccurrencesAction, provider, selection);
//		registerAction(fFindImplementorOccurrencesAction, provider, selection);
	}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:42,代码来源:OccurrencesSearchGroup.java


注:本文中的org.eclipse.ui.texteditor.ITextEditorActionConstants.GROUP_FIND属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。