@Override public void codeComplete(int offset, CompletionRequestor requestor, WorkingCopyOwner owner, IProgressMonitor monitor) throws JavaModelException { String source = getSource(); if (source != null) { BasicCompilationUnit cu = new BasicCompilationUnit( getSource().toCharArray(), null, TypeConstants.MODULE_INFO_FILE_NAME_STRING, getJavaProject()); // use project to retrieve corresponding .java IFile codeComplete(cu, cu, offset, requestor, owner, null/*extended context isn't computed*/, monitor); } }
@Override public void codeComplete(int offset, CompletionRequestor requestor, WorkingCopyOwner owner, IProgressMonitor monitor) throws JavaModelException { String source = getSource(); if (source != null) { BasicCompilationUnit cu = new BasicCompilationUnit( getSource().toCharArray(), null, TypeConstants.MODULE_INFO_FILE_NAME_STRING, getJavaProject()); // use project to retrieve corresponding .java IFile codeComplete(cu, cu, offset, requestor, owner, null/*extended context isn't computed*/, monitor); } }