private void proposeGetterDelegate(IJavaProject project,IMethod method,int invocationOffset,int indentationUnits,boolean isStatic,List<ICompletionProposal> proposals,int numCharsFilled,int numCharsToOverwrite) throws JavaModelException {
  String methodName=method.getElementName();
  String[] parameterNames=method.getParameterNames();
  String expression="return " + createJsMethodInvocationExpression(methodName,isStatic,parameterNames);
  String code=createJsniBlock(project,expression,indentationUnits);
  proposals.add(createProposal(method.getFlags(),code,invocationOffset,numCharsFilled,numCharsToOverwrite,expression));
}

private void proposeGetterDelegate ( IJavaProject project , IMethod method , int invocationOffset , int indentationUnits , boolean isStatic , List < ICompletionProposal > proposals , int numCharsFilled , int numCharsToOverwrite ) throws JavaModelException { String methodName = method . getElementName ( ) ; String [ ] parameterNames = method . getParameterNames ( ) ; String expression = "return " + createJsMethodInvocationExpression ( methodName , isStatic , parameterNames ) ; String code = createJsniBlock ( project , expression , indentationUnits ) ; proposals . add ( createProposal ( method . getFlags ( ) , code , invocationOffset , numCharsFilled , numCharsToOverwrite , expression ) ) ; }
proposes a getter that is assumed to delegate to a method with the same name as the java method .
