Bug 37131 [content assist] "Error accessing compilation unit" when using code assist for files not contained in a Java project
Steps to reproduce: 1) Set up a CVS repository connection. 2) Locate an existing Java project in the CVS repository. Right click on the HEAD branch of the project and choose "Check Out as Project". 3) Navigate to the Resource perspective and open a Java source file in the newly created project. In my project, all source files are found under the "src" subdirectory. 4) Navigate within the source file to any function. Start typing the following (slowly) to trigger the code assist functionality: System. 5) An error popup is shown. The title of the error window is "Error Accessing Compilation Unit", and the message shown in the error window is "Cannot access compilation unit. Reason: <project_name> does not exist." where "<project_name>" is the name of the checked out project in step 2. This message appears every time the code assist functionality is invoked, which makes it difficult to edit Java code in a CVS project.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProcessor.java
String errorMsg= fCollector.getErrorMessage();
			if (errorMsg == null || errorMsg.trim().length() == 0)
				errorMsg= JavaUIMessages.getString("JavaEditor.codeassist.noCompletions"); 
			return errorMsg;
		}
		
		if (PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES))
			return fExperimentalCollector.getErrorMessage();
			
		return fCollector.getErrorMessage();
	}
	/**
	 * @see IContentAssistProcessor#getContextInformationValidator()
	 */
	public IContextInformationValidator getContextInformationValidator() {
		if (fValidator == null)
			fValidator= new JavaParameterListValidator();
		return fValidator;
	}
	/**
	 * @see IContentAssistProcessor#getContextInformationAutoActivationCharacters()
	 */
	public char[] getContextInformationAutoActivationCharacters() {
		return null;
	}
	/**
	 * @see IContentAssistProcessor#getCompletionProposalAutoActivationCharacters()
	 */
	public char[] getCompletionProposalAutoActivationCharacters() {
		return fProposalAutoActivationSet;