Package org.eclipse.jface.text.link
Class ProposalPosition
java.lang.Object
org.eclipse.jface.text.Position
org.eclipse.jface.text.link.LinkedPosition
org.eclipse.jface.text.link.ProposalPosition
LinkedPosition with added completion proposals.
 
Clients may instantiate or extend this class.
- Since:
- 3.0
- 
Field Summary
- 
Constructor SummaryConstructorsConstructorDescriptionProposalPosition(IDocument document, int offset, int length, int sequence, ICompletionProposal[] proposals) Creates a new instance.ProposalPosition(IDocument document, int offset, int length, ICompletionProposal[] proposals) Creates a new instance, with no sequence number.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns the proposals attached to this position.inthashCode()Methods inherited from class org.eclipse.jface.text.link.LinkedPositiongetContent, getDocument, getSequenceNumber, includes, includes, includes, includes, overlapsWith, setSequenceNumber
- 
Constructor Details- 
ProposalPositionpublic ProposalPosition(IDocument document, int offset, int length, int sequence, ICompletionProposal[] proposals) Creates a new instance.- Parameters:
- document- the document
- offset- the offset of the position
- length- the length of the position
- sequence- the iteration sequence rank
- proposals- the proposals to be shown when entering this position
 
- 
ProposalPositionpublic ProposalPosition(IDocument document, int offset, int length, ICompletionProposal[] proposals) Creates a new instance, with no sequence number.- Parameters:
- document- the document
- offset- the offset of the position
- length- the length of the position
- proposals- the proposals to be shown when entering this position
 
 
- 
- 
Method Details- 
equals- Overrides:
- equalsin class- LinkedPosition
 
- 
getChoicesReturns the proposals attached to this position. The returned array is owned by thisProposalPositionand may not be modified by clients.- Returns:
- an array of choices, including the initial one. Callers must not modify it.
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- LinkedPosition
 
 
-