String matchingElementClassName = (String) matchingElementClassNamesIter.next(); String shortElementTypeName = WodBindingUtils.getShortClassName(matchingElementClassName); WodCompletionProposal completionProposal = new WodCompletionProposal(_token, _tokenOffset, _offset, shortElementTypeName);
String matchingElementTypeName = (String) matchingElementClassNamesIter.next(); String elementTypeName; if (includePackageName) { elementTypeName = matchingElementTypeName; } else { elementTypeName = WodBindingUtils.getShortClassName(matchingElementTypeName); } WodCompletionProposal completionProposal = new WodCompletionProposal(_token, _tokenOffset, _offset, elementTypeName);
  protected static void fillInElementTypeCompletionProposals(IJavaProject _project, String _token, int _tokenOffset, int _offset, Set _completionProposalsSet) throws JavaModelException {    // Lookup type names that extend WOElement based on the current partial token    TypeNameCollector typeNameCollector = new TypeNameCollector(_project, false);    String partialToken = WodCompletionProcessor.partialToken(_token, _tokenOffset, _offset);    if (partialToken.length() > 0) {      WodBindingUtils.findMatchingElementClassNames(partialToken, SearchPattern.R_PREFIX_MATCH, typeNameCollector);      Iterator matchingElementClassNamesIter = typeNameCollector.typeNames();      while (matchingElementClassNamesIter.hasNext()) {        String matchingElementClassName = (String) matchingElementClassNamesIter.next();        String shortElementTypeName = WodBindingUtils.getShortClassName(matchingElementClassName);        WodCompletionProposal completionProposal = new WodCompletionProposal(_token, _tokenOffset, _offset, shortElementTypeName);        _completionProposalsSet.add(completionProposal);      }    }  }