Java Code Examples for org.eclipse.jdt.internal.ui.search.SearchUtil#toString()

The following examples show how to use org.eclipse.jdt.internal.ui.search.SearchUtil#toString() . 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: ImplementorsSearchGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
private void addWorkingSetAction(IWorkingSet[] workingSets, IMenuManager manager) {
	FindAction action;
	if (fEditor != null)
		action= new WorkingSetFindAction(fEditor, new FindImplementorsInWorkingSetAction(fEditor, workingSets), SearchUtil.toString(workingSets));
	else
		action= new WorkingSetFindAction(fSite, new FindImplementorsInWorkingSetAction(fSite, workingSets), SearchUtil.toString(workingSets));
	action.update(getContext().getSelection());
	addAction(action, manager);
}
 
Example 2
Source File: WriteReferencesSearchGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
private void addWorkingSetAction(IWorkingSet[] workingSets, IMenuManager manager) {
	FindAction action;
	if (fEditor != null)
		action= new WorkingSetFindAction(fEditor, new FindWriteReferencesInWorkingSetAction(fEditor, workingSets), SearchUtil.toString(workingSets));
	else
		action= new WorkingSetFindAction(fSite, new FindWriteReferencesInWorkingSetAction(fSite, workingSets), SearchUtil.toString(workingSets));
	action.update(getContext().getSelection());
	addAction(action, manager);
}
 
Example 3
Source File: DeclarationsSearchGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
private void addWorkingSetAction(IWorkingSet[] workingSets, IMenuManager manager) {
	FindAction action;
	if (fEditor != null)
		action= new WorkingSetFindAction(fEditor, new FindDeclarationsInWorkingSetAction(fEditor, workingSets), SearchUtil.toString(workingSets));
	else
		action= new WorkingSetFindAction(fSite, new FindDeclarationsInWorkingSetAction(fSite, workingSets), SearchUtil.toString(workingSets));
	action.update(getContext().getSelection());
	addAction(action, manager);
}
 
Example 4
Source File: ReadReferencesSearchGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
private void addWorkingSetAction(IWorkingSet[] workingSets, IMenuManager manager) {
	FindAction action;
	if (fEditor != null)
		action= new WorkingSetFindAction(fEditor, new FindReadReferencesInWorkingSetAction(fEditor, workingSets), SearchUtil.toString(workingSets));
	else
		action= new WorkingSetFindAction(fSite, new FindReadReferencesInWorkingSetAction(fSite, workingSets), SearchUtil.toString(workingSets));
	action.update(getContext().getSelection());
	addAction(action, manager);
}
 
Example 5
Source File: ReferencesSearchGroup.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
private void addWorkingSetAction(IWorkingSet[] workingSets, IMenuManager manager) {
	FindAction action;
	if (fEditor != null)
		action= new WorkingSetFindAction(fEditor, new FindReferencesInWorkingSetAction(fEditor, workingSets), SearchUtil.toString(workingSets));
	else
		action= new WorkingSetFindAction(fSite, new FindReferencesInWorkingSetAction(fSite, workingSets), SearchUtil.toString(workingSets));
	action.update(getContext().getSelection());
	addAction(action, manager);
}