|
Eclipse Platform Release 3.6 |
|||||||||
| 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
public class 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(java.lang.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, toString, undelete |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, 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 position
public 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 position| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class LinkedPositionpublic ICompletionProposal[] getChoices()
ProposalPosition and may not be modified by clients.
public int hashCode()
hashCode in class LinkedPosition
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.