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, setSequenceNumber
public 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 LinkedPosition
public ICompletionProposal[] getChoices()
ProposalPosition
and may not be modified by clients.public int hashCode()
hashCode
in class LinkedPosition
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.