org.eclipse.cdt.internal.ui.editor
Class SpecificContentAssistExecutor

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.editor.SpecificContentAssistExecutor

public final class SpecificContentAssistExecutor
extends java.lang.Object

A content assist executor can invoke content assist for a specific proposal category on an editor.

Since:
4.0

Constructor Summary
SpecificContentAssistExecutor(CompletionProposalComputerRegistry registry)
          Creates a new executor.
 
Method Summary
 void invokeContentAssist(org.eclipse.ui.texteditor.ITextEditor editor, java.lang.String categoryId)
          Invokes content assist on editor, showing only proposals computed by the CompletionProposalCategory with the given categoryId.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecificContentAssistExecutor

public SpecificContentAssistExecutor(CompletionProposalComputerRegistry registry)
Creates a new executor.

Parameters:
registry - the computer registry to use for the enablement of proposal categories
Method Detail

invokeContentAssist

public void invokeContentAssist(org.eclipse.ui.texteditor.ITextEditor editor,
                                java.lang.String categoryId)
Invokes content assist on editor, showing only proposals computed by the CompletionProposalCategory with the given categoryId.

Parameters:
editor - the editor to invoke code assist on
categoryId - the id of the proposal category to show proposals for