public class SimpleContentProposalProvider extends Object implements IContentProposalProvider
IContentProposalProvider
Constructor and Description |
---|
SimpleContentProposalProvider(String[] proposals)
Construct a SimpleContentProposalProvider whose content proposals are
always the specified array of Objects.
|
Modifier and Type | Method and Description |
---|---|
IContentProposal[] |
getProposals(String contents,
int position)
Return an array of Objects representing the valid content proposals for a
field.
|
void |
setProposals(String[] items)
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)
getProposals
in interface IContentProposalProvider
contents
- the current contents of the field (ignored)position
- the current cursor position within the field (ignored)public void setProposals(String[] items)
items
- the array of Strings to be used as proposals.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.