org.eclipse.jst.jsf.context.symbol.provider
Class ProposalCreationFactoryAdapter
java.lang.Object
org.eclipse.jst.jsf.context.symbol.provider.ProposalCreationFactoryAdapter
- All Implemented Interfaces:
- IContentProposalProvider.IProposalCreationFactory
public class ProposalCreationFactoryAdapter
- extends java.lang.Object
- implements IContentProposalProvider.IProposalCreationFactory
Default implementation of the proposal creation factory
Provisional API - subject to change
Method Summary |
org.eclipse.jface.text.contentassist.ICompletionProposal |
createProposal(java.lang.String replacementText,
java.lang.String displayText,
java.lang.String additionalText,
org.eclipse.swt.graphics.Image displayImage,
java.lang.Object targetObject)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProposalCreationFactoryAdapter
public ProposalCreationFactoryAdapter(int replacementOffset,
int replacementLength)
- Parameters:
replacementOffset
- -- the absolute document offset to do the replacementreplacementLength
- -- the number of characters to replace or 0
for insert without any replacement
createProposal
public org.eclipse.jface.text.contentassist.ICompletionProposal createProposal(java.lang.String replacementText,
java.lang.String displayText,
java.lang.String additionalText,
org.eclipse.swt.graphics.Image displayImage,
java.lang.Object targetObject)
- Specified by:
createProposal
in interface IContentProposalProvider.IProposalCreationFactory
- Parameters:
replacementText
- The text to be replaceddisplayText
- The text to be displayed in the assist windowadditionalText
- The text to be displayed in the "addition info"
or nulldisplayImage
- The image to be displayed or nulltargetObject
- The original source object. Implementors should
make no assumptions (i.e. always test instanceof before casting)
- Returns:
- a configured completion proposal for the parameters