Class VariableProposalProvider
- java.lang.Object
-
- com.e1c.g5.v8.dt.lcore.ui.templates.contentassist.variable.proposals.VariableProposalProvider
-
- All Implemented Interfaces:
IVariableProposalProvider
public class VariableProposalProvider extends Object implements IVariableProposalProvider
Default implementation onIVariableProposalProvider
-
-
Constructor Summary
Constructors Constructor Description VariableProposalProvider(String[] replacementTexts)
Creates provider with given array of strings, that will be used as replace strings for proposals
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IPositionBasedCompletionProposal
createProposal(String replacementText, org.eclipse.jface.text.IRegion region)
Creates proposal with given text to replace withIPositionBasedCompletionProposal[]
createProposals(org.eclipse.jface.text.IRegion region)
Creates proposals for given region
-
-
-
Constructor Detail
-
VariableProposalProvider
public VariableProposalProvider(String[] replacementTexts)
Creates provider with given array of strings, that will be used as replace strings for proposals- Parameters:
replacementTexts
- The array of strings to replace with ,cannot benull
-
-
Method Detail
-
createProposals
public IPositionBasedCompletionProposal[] createProposals(org.eclipse.jface.text.IRegion region)
Description copied from interface:IVariableProposalProvider
Creates proposals for given region- Specified by:
createProposals
in interfaceIVariableProposalProvider
- Parameters:
region
- The region for proposals, cannot benull
- Returns:
- The array of proposals, cannot be
null
-
createProposal
protected IPositionBasedCompletionProposal createProposal(String replacementText, org.eclipse.jface.text.IRegion region)
Creates proposal with given text to replace with- Parameters:
replacementText
- The text to replace with, cannot benull
region
- The region of the proposal, cannot benull
- Returns:
- The instance of IPositionBasedCompletionProposal, cannot be
null
-
-