|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.fieldassist.SimpleContentProposalProvider
SimpleContentProposalProvider is a class designed to map a static list of Strings to content proposals.
IContentProposalProvider
Constructor Summary | |
---|---|
SimpleContentProposalProvider(String[] proposals)
Construct a SimpleContentProposalProvider whose content proposals are always the specified array of Objects. |
Method Summary | |
---|---|
IContentProposal[] |
getProposals(String contents,
int position)
Return an array of Objects representing the valid content proposals for a field. |
void |
setFiltering(boolean filterProposals)
Set the boolean that controls whether proposals are filtered according to the current field content. |
void |
setProposals(String[] items)
Set the Strings to be used as content proposals. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleContentProposalProvider(String[] proposals)
proposals
- the array of Strings to be returned whenever proposals are
requested.Method Detail |
public IContentProposal[] getProposals(String contents, int position)
getProposals
in interface IContentProposalProvider
contents
- the current contents of the field (only consulted if filtering
is set to true
)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)
filterProposals
- true
if the proposals should be filtered to
show only those that match the current contents of the field,
and false
if the proposals should remain the
same, ignoring the field content.
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.