/** * Creates a new instance, with no sequence number. * * @param document the document * @param offset the offset of the position * @param length the length of the position * @param proposals the proposals to be shown when entering this position */ public ProposalPosition(IDocument document, int offset, int length, ICompletionProposal[] proposals) { super(document, offset, length, LinkedPositionGroup.NO_STOP); fProposals= copy(proposals); }
/** * Creates a new instance, with no sequence number. * * @param document the document * @param offset the offset of the position * @param length the length of the position * @param proposals the proposals to be shown when entering this position */ public ProposalPosition(IDocument document, int offset, int length, ICompletionProposal[] proposals) { super(document, offset, length, LinkedPositionGroup.NO_STOP); fProposals= copy(proposals); }
/** * Creates a new instance. * * @param document the document * @param offset the offset of the position * @param length the length of the position * @param sequence the iteration sequence rank * @param proposals the proposals to be shown when entering this position */ public ProposalPosition(IDocument document, int offset, int length, int sequence, ICompletionProposal[] proposals) { super(document, offset, length, sequence); fProposals= copy(proposals); }
/** * Creates a new instance. * * @param document the document * @param offset the offset of the position * @param length the length of the position * @param sequence the iteration sequence rank * @param proposals the proposals to be shown when entering this position */ public ProposalPosition(IDocument document, int offset, int length, int sequence, ICompletionProposal[] proposals) { super(document, offset, length, sequence); fProposals= copy(proposals); }