public class FindReplaceDocumentAdapterContentProposalProvider extends Object implements IContentProposalProvider
FindReplaceDocumentAdapter
.
Clients can subclass to provide additional proposals in case they are supported by their own find/replace mechanism.
Note: Clients must not make any assumptions about the returned
proposals. This can change from release to release to adapt to
changes made in FindReplaceDocumentAdapter
.
Constructor and Description |
---|
FindReplaceDocumentAdapterContentProposalProvider(boolean isFind)
Creates a new completion proposal provider.
|
Modifier and Type | Method and Description |
---|---|
IContentProposal[] |
getProposals(String contents,
int position)
Return an array of content proposals representing the valid proposals for a
field.
|
public FindReplaceDocumentAdapterContentProposalProvider(boolean isFind)
isFind
- true
if the provider is used for the 'find' field
false
if the provider is used for the 'replace' fieldpublic IContentProposal[] getProposals(String contents, int position)
IContentProposalProvider
getProposals
in interface IContentProposalProvider
contents
- the current contents of the text fieldposition
- the current position of the cursor in the contentsIContentProposal
that represent valid
proposals for the field.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.