|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.
Field Summary |
---|
Fields inherited from class org.eclipse.jface.text.Position |
---|
isDeleted, length, offset |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
ICompletionProposal[] |
getChoices()
Returns the proposals attached to this position. |
int |
hashCode()
|
Methods inherited from class org.eclipse.jface.text.link.LinkedPosition |
---|
getContent, getDocument, getSequenceNumber, includes, includes, includes, includes, overlapsWith, setSequenceNumber |
Methods inherited from class org.eclipse.jface.text.Position |
---|
delete, getLength, getOffset, isDeleted, overlapsWith, setLength, setOffset, undelete |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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 positionMethod Detail |
public 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
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.