| org.eclipse.ui.fieldassist.ContentAssistCommandAdapter
ContentAssistCommandAdapter | public class ContentAssistCommandAdapter extends ContentProposalAdapter (Code) | | ContentAssistCommandAdapter extends
ContentProposalAdapter to invoke
content proposals using a specified
org.eclipse.ui.commands.ICommand .
The ability to specify a
org.eclipse.jface.bindings.keys.KeyStroke that explicitly invokes content proposals is hidden by this class, and
instead the String id of a command is used. If no command id is specified by
the client, then the default workbench content assist command is used.
As of 3.3, ContentAssistCommandAdapter can be optionally configured to
install the content assist decoration on its control.
This class is not intended to be subclassed.
since: 3.2 |
Constructor Summary | |
public | ContentAssistCommandAdapter(Control control, IControlContentAdapter controlContentAdapter, IContentProposalProvider proposalProvider, String commandId, char[] autoActivationCharacters) Construct a content proposal adapter that can assist the user with
choosing content for the field. | public | ContentAssistCommandAdapter(Control control, IControlContentAdapter controlContentAdapter, IContentProposalProvider proposalProvider, String commandId, char[] autoActivationCharacters, boolean installDecoration) Construct a content proposal adapter that can assist the user with
choosing content for the field.
Parameters: control - the control for which the adapter is providing content assist.May not be null . Parameters: controlContentAdapter - the IControlContentAdapter used to obtain andupdate the control's contents as proposals are accepted. |
Method Summary | |
public String | getCommandId() Return the string command ID of the command used to invoke content
assist. | public void | setEnabled(boolean enabled) |
CONTENT_PROPOSAL_COMMAND | final public static String CONTENT_PROPOSAL_COMMAND(Code) | | The command id used for content assist. (value
"org.eclipse.ui.edit.text.contentAssist.proposals" )
|
ContentAssistCommandAdapter | public ContentAssistCommandAdapter(Control control, IControlContentAdapter controlContentAdapter, IContentProposalProvider proposalProvider, String commandId, char[] autoActivationCharacters)(Code) | | Construct a content proposal adapter that can assist the user with
choosing content for the field. No visual indicator of content assist is
shown.
Parameters: control - the control for which the adapter is providing content assist.May not be null . Parameters: controlContentAdapter - the IControlContentAdapter used to obtain andupdate the control's contents as proposals are accepted. Maynot be null . Parameters: proposalProvider - the IContentProposalProvider used to obtaincontent proposals for this control, or null ifno content proposal is available. Parameters: commandId - the String id of the command that will invoke the contentassistant. If not supplied, the default value will be"org.eclipse.ui.edit.text.contentAssist.proposals". Parameters: autoActivationCharacters - An array of characters that trigger auto-activation of contentproposal. If specified, these characters will triggerauto-activation of the proposal popup, regardless of thespecified command id. |
ContentAssistCommandAdapter | public ContentAssistCommandAdapter(Control control, IControlContentAdapter controlContentAdapter, IContentProposalProvider proposalProvider, String commandId, char[] autoActivationCharacters, boolean installDecoration)(Code) | | Construct a content proposal adapter that can assist the user with
choosing content for the field.
Parameters: control - the control for which the adapter is providing content assist.May not be null . Parameters: controlContentAdapter - the IControlContentAdapter used to obtain andupdate the control's contents as proposals are accepted. Maynot be null . Parameters: proposalProvider - the IContentProposalProvider used to obtaincontent proposals for this control, or null ifno content proposal is available. Parameters: commandId - the String id of the command that will invoke the contentassistant. If not supplied, the default value will be"org.eclipse.ui.edit.text.contentAssist.proposals". Parameters: autoActivationCharacters - An array of characters that trigger auto-activation of contentproposal. If specified, these characters will triggerauto-activation of the proposal popup, regardless of thespecified command id. Parameters: installDecoration - A boolean that specifies whether a content assist controldecoration should be installed. The client is responsible forensuring that adequate space is reserved for the decoration.Clients that want more fine-grained control of thedecoration's location or appearance should usefalse for this parameter, creating their ownControlDecoration and managing it directly. since: 3.3 |
getCommandId | public String getCommandId()(Code) | | Return the string command ID of the command used to invoke content
assist.
the command ID of the command that invokes content assist. |
setEnabled | public void setEnabled(boolean enabled)(Code) | | |
|
|