/** * Takes the selected proposal and applies it. * * @param stateMask the state mask * @return <code>true</code> iff a proposal has been inserted * @since 2.1 */ private boolean selectProposalWithMask(int stateMask) { if (fInvocationCounter != fInvocationProcessedCounter) if (!doFilterProposals()) return false; ICompletionProposal p= getSelectedProposal(); hide(); if (p != null) { insertProposal(p, (char) 0, stateMask, fViewer.getSelectedRange().x); return true; } return false; }
/** * Takes the selected proposal and applies it. * * @param stateMask the state mask * @return <code>true</code> iff a proposal has been inserted * @since 2.1 */ private boolean selectProposalWithMask(int stateMask) { if (fInvocationCounter != fInvocationProcessedCounter) if (!doFilterProposals()) return false; ICompletionProposal p= getSelectedProposal(); hide(); if (p != null) { insertProposal(p, (char) 0, stateMask, fViewer.getSelectedRange().x); return true; } return false; }