@Override public boolean equals(Object o) { if (o instanceof VariablePosition && super.equals(o)) { return fGuess.equals(((VariablePosition) o).fGuess); } return false; }
@Override public int hashCode() { return super.hashCode() | fGuess.hashCode(); }
/** * 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); }
ensurePositionCategoryInstalled(document, model); document.addPosition(getCategory(), fPositions[i]); group.addPosition(new ProposalPosition(document, positionOffset, positionLength, LinkedPositionGroup.NO_STOP, fChoices[i]));
/** Trigger content assist on choice positions */ private void triggerContentAssist() { if (fFramePosition instanceof ProposalPosition) { ProposalPosition pp= (ProposalPosition) fFramePosition; ICompletionProposal[] choices= pp.getChoices(); if (choices != null && choices.length > 0) { fAssistant.setCompletions(choices); fAssistant.showPossibleCompletions(); return; } } fAssistant.setCompletions(new ICompletionProposal[0]); fAssistant.hidePossibleCompletions(); }
ensurePositionCategoryInstalled(document, model); document.addPosition(getCategory(), fPositions[i]); group.addPosition(new ProposalPosition(document, positionOffset, positionLength, LinkedPositionGroup.NO_STOP, fChoices[i]));
/** Trigger content assist on choice positions */ private void triggerContentAssist() { if (fFramePosition instanceof ProposalPosition) { ProposalPosition pp= (ProposalPosition) fFramePosition; ICompletionProposal[] choices= pp.getChoices(); if (choices != null && choices.length > 0) { fAssistant.setCompletions(choices); fAssistant.showPossibleCompletions(); return; } } fAssistant.setCompletions(new ICompletionProposal[0]); fAssistant.hidePossibleCompletions(); }
ensurePositionCategoryInstalled(document, model); document.addPosition(getCategory(), fPositions[i]); group.addPosition(new ProposalPosition(document, positionOffset, positionLength, LinkedPositionGroup.NO_STOP, fChoices[i]));
public boolean equals(Object o) { if (o instanceof VariablePosition && super.equals(o)) { return fGuess.equals(((VariablePosition) o).fGuess); } return false; }
@Override public int hashCode() { return super.hashCode() | fGuess.hashCode(); }
/** * 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); }
ensurePositionCategoryInstalled(document, model); document.addPosition(getCategory(), fPositions[i]); group.addPosition(new ProposalPosition(document, positionOffset, positionLength, LinkedPositionGroup.NO_STOP, fChoices[i]));
@Override public boolean equals(Object o) { if (o instanceof VariablePosition && super.equals(o)) { return fGuess.equals(((VariablePosition) o).fGuess); } return false; }
public int hashCode() { return super.hashCode() | fGuess.hashCode(); }
/** * 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); }
ensurePositionCategoryInstalled(document, model); document.addPosition(getCategory(), fPositions[i]); group.addPosition(new ProposalPosition(document, positionOffset, positionLength, LinkedPositionGroup.NO_STOP, fChoices[i]));
/** * 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); }
LinkedProposalPositionGroup.PositionInformation pos= positions[i]; if (pos.getOffset() != -1) { group.addPosition(new ProposalPosition(document, pos.getOffset(), pos.getLength(), pos.getSequenceRank(), proposalImpls));
LinkedProposalPositionGroup.PositionInformation pos= positions[i]; if (pos.getOffset() != -1) { group.addPosition(new ProposalPosition(document, pos.getOffset(), pos.getLength(), pos.getSequenceRank(), proposalImpls));
LinkedProposalPositionGroup.PositionInformation pos= positions[i]; if (pos.getOffset() != -1) { group.addPosition(new ProposalPosition(document, pos.getOffset(), pos.getLength(), pos.getSequenceRank(), proposalImpls));