| org.eclipse.ui.fieldassist.ContentAssistField
ContentAssistField | public class ContentAssistField extends DecoratedField (Code) | | ContentAssistField utilizes the concepts of a
DecoratedField and the
ContentAssistCommandAdapter to provide a decorated field that shows a
content assist cue when it gets focus and invokes content assist for a
specified command.
This class is not intended to be subclassed.
since: 3.2org.eclipse.jface.fieldassist.ControlDecorationContentAssistCommandAdapter |
Constructor Summary | |
public | ContentAssistField(Composite parent, int style, IControlCreator controlCreator, IControlContentAdapter controlContentAdapter, IContentProposalProvider proposalProvider, String commandId, char[] autoActivationCharacters) Construct a content assist field that shows a content assist cue and can
assist the user with choosing content for the field.
Parameters: parent - the parent of the decorated field. Parameters: style - the desired style bits for the field. Parameters: controlCreator - the IControlCreator used to specify the specific kind ofcontrol that is to be decorated. Parameters: controlContentAdapter - the IControlContentAdapter used to obtain andupdate the control's contents as proposals are accepted. |
ContentAssistField | public ContentAssistField(Composite parent, int style, IControlCreator controlCreator, IControlContentAdapter controlContentAdapter, IContentProposalProvider proposalProvider, String commandId, char[] autoActivationCharacters)(Code) | | Construct a content assist field that shows a content assist cue and can
assist the user with choosing content for the field.
Parameters: parent - the parent of the decorated field. Parameters: style - the desired style bits for the field. Parameters: controlCreator - the IControlCreator used to specify the specific kind ofcontrol that is to be decorated. 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. |
getContentAssistCommandAdapter | public ContentAssistCommandAdapter getContentAssistCommandAdapter()(Code) | | Return the ContentAssistCommandAdapter installed on the receiver. This
adapter is provided so that clients can configure the adapter if the
default values are not appropriate.
the ContentAssistCommandAdapter installed on the field. |
setEnabled | public void setEnabled(boolean enabled)(Code) | | Set the boolean flag that determines whether the content assist is
enabled.
Parameters: enabled - true if content assist is enabled andresponding to user input, false if it isignoring user input. |
|
|