|Constructor and Description|
Construct a SimpleContentProposalProvider whose content proposals are always the specified array of Objects.
|Modifier and Type||Method and Description|
Return an array of Objects representing the valid content proposals for a field.
Set the boolean that controls whether proposals are filtered according to the current field content.
Set the Strings to be used as content proposals.
public SimpleContentProposalProvider(String proposals)
proposals- the array of Strings to be returned whenever proposals are requested.
public IContentProposal getProposals(String contents, int position)
contents- the current contents of the field (only consulted if filtering is set to
position- the current cursor position within the field (ignored)
public void setProposals(String items)
items- the array of Strings to be used as proposals.
public void setFiltering(boolean filterProposals)
trueif the proposals should be filtered to show only those that match the current contents of the field, and
falseif the proposals should remain the same, ignoring the field content.
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.