public class ProposalPosition extends LinkedPosition
Clients may instantiate or extend this class.
| Constructor and Description |
|---|
ProposalPosition(IDocument document,
int offset,
int length,
ICompletionProposal[] proposals)
Creates a new instance, with no sequence number.
|
ProposalPosition(IDocument document,
int offset,
int length,
int sequence,
ICompletionProposal[] proposals)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ICompletionProposal[] |
getChoices()
Returns the proposals attached to this position.
|
int |
hashCode() |
getContent, getDocument, getSequenceNumber, includes, includes, includes, includes, overlapsWith, setSequenceNumberpublic ProposalPosition(IDocument document, int offset, int length, int sequence, ICompletionProposal[] proposals)
document - the documentoffset - the offset of the positionlength - the length of the positionsequence - the iteration sequence rankproposals - the proposals to be shown when entering this positionpublic ProposalPosition(IDocument document, int offset, int length, ICompletionProposal[] proposals)
document - the documentoffset - the offset of the positionlength - the length of the positionproposals - the proposals to be shown when entering this positionpublic boolean equals(Object o)
equals in class LinkedPositionpublic ICompletionProposal[] getChoices()
ProposalPosition and may not be modified by clients.public int hashCode()
hashCode in class LinkedPositionGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.