IAction action= editor.getAction("ContentAssistProposal"); if (action == null || !action.isEnabled()) return null;  Collection categories= CompletionProposalComputerRegistry.getDefault().getProposalCategories(); boolean[] oldstates= new boolean[categories.size()]; int i= 0; for (Iterator it1= categories.iterator(); it1.hasNext();) { CompletionProposalCategory cat= (CompletionProposalCategory) it1.next(); oldstates[i++]= cat.isIncluded(); cat.setIncluded(cat.getId().equals(computerId)); }  try { ITextOperationTarget target= editor.getViewer().getTextOperationTarget(); if (target.canDoOperation(ISourceViewer.CONTENTASSIST_PROPOSALS)) target.doOperation(ISourceViewer.CONTENTASSIST_PROPOSALS); } finally { i= 0; for (Iterator it1= categories.iterator(); it1.hasNext();) { CompletionProposalCategory cat= (CompletionProposalCategory) it1.next(); cat.setIncluded(oldstates[i++]); } }
fExecutor.invokeContentAssist(editor, categoryId);
	public Object execute(ExecutionEvent event) throws ExecutionException {		final JavaEditor editor= getActiveJavaEditor();		if (editor == null)			return null;				String computerId= event.getParameter("org.eclipse.jdt.ui.specific_content_assist.category_id"); //$NON-NLS-1$		if (computerId == null)			return null;				IAction action= editor.getAction("ContentAssistProposal"); //$NON-NLS-1$		if (action == null || !action.isEnabled())			return null;				Collection categories= CompletionProposalComputerRegistry.getDefault().getProposalCategories();		boolean[] oldstates= new boolean[categories.size()];		int i= 0;		for (Iterator it1= categories.iterator(); it1.hasNext();) {			CompletionProposalCategory cat= (CompletionProposalCategory) it1.next();			oldstates[i++]= cat.isIncluded();			cat.setIncluded(cat.getId().equals(computerId));		}				try {			ITextOperationTarget target= editor.getViewer().getTextOperationTarget();			if (target.canDoOperation(ISourceViewer.CONTENTASSIST_PROPOSALS))				target.doOperation(ISourceViewer.CONTENTASSIST_PROPOSALS);		} finally {			i= 0;			for (Iterator it1= categories.iterator(); it1.hasNext();) {				CompletionProposalCategory cat= (CompletionProposalCategory) it1.next();				cat.setIncluded(oldstates[i++]);			}		}				return null;	}