offset = fTranslation.getJspOffset(offset);
// cursor position after must be calculated
int positionAfter = calculatePositionAfter(proposal, completion, offset);
// from java proposal
IJavaCompletionProposal javaProposal = super.createJavaCompletionProposal(proposal);
proposal.getDeclarationSignature();
Image image = javaProposal.getImage();
String displayString = javaProposal.getDisplayString();
displayString = getTranslation().fixupMangledName(displayString);
IContextInformation contextInformation = javaProposal.getContextInformation();
// String additionalInfo = javaProposal.getAdditionalProposalInfo();
/* the context information is calculated with respect to the java document
* thus it needs to be updated in respect of the JSP document.
*/
if(contextInformation instanceof ProposalContextInformation) {
ProposalContextInformation proposalInfo = (ProposalContextInformation)contextInformation;
int contextInfoJSPOffset = fTranslation.getJspOffset(proposalInfo.getContextInformationPosition());
proposalInfo.setContextInformationPosition(contextInfoJSPOffset);
}
int relevance = javaProposal.getRelevance();
boolean updateLengthOnValidate = true;
jspProposal = new JSPMethodCompletionProposal(proposal, fTranslation.getJavaProject(), completion, offset, length, positionAfter, image, displayString, contextInformation, null, relevance, updateLengthOnValidate);