Package org.eclipse.jface.text
Class FindReplaceDocumentAdapterContentProposalProvider
java.lang.Object
org.eclipse.jface.text.FindReplaceDocumentAdapterContentProposalProvider
- All Implemented Interfaces:
IContentProposalProvider
public class FindReplaceDocumentAdapterContentProposalProvider
extends Object
implements IContentProposalProvider
Content assist proposal provider for the
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.
- Since:
- 3.4
-
Constructor Summary
ConstructorsConstructorDescriptionFindReplaceDocumentAdapterContentProposalProvider(boolean isFind) Creates a new completion proposal provider. -
Method Summary
Modifier and TypeMethodDescriptiongetProposals(String contents, int position) Return an array of content proposals representing the valid proposals for a field.
-
Constructor Details
-
FindReplaceDocumentAdapterContentProposalProvider
public FindReplaceDocumentAdapterContentProposalProvider(boolean isFind) Creates a new completion proposal provider.- Parameters:
isFind-trueif the provider is used for the 'find' fieldfalseif the provider is used for the 'replace' field
-
-
Method Details
-
getProposals
Description copied from interface:IContentProposalProviderReturn an array of content proposals representing the valid proposals for a field.- Specified by:
getProposalsin interfaceIContentProposalProvider- Parameters:
contents- the current contents of the text fieldposition- the current position of the cursor in the contents- Returns:
- the array of
IContentProposalthat represent valid proposals for the field.
-