final JavaEditor editor= getActiveJavaEditor();
ITextEditor editor= getActiveEditor();
	public void run() {		final JavaEditor editor= getActiveJavaEditor();		if (editor == null)			return;				String computerId= fCategory.getId();				IAction action= editor.getAction("ContentAssistProposal"); //$NON-NLS-1$		if (action == null || !action.isEnabled())			return;				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;	}