Bug 15527 JavaCore constants should be used is favor of hard-coded strings
the following classes should use constants defined in JavaCode rather than hard-coded strings StubUtility CodeFormatterUtil CompilationUnitEditor JavaCodeScanner JavaCompiletionProcessor
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProcessor.java
try {
				if (unit != null) {
	
					fExperimentalCollector.reset(offset, unit.getJavaProject(), fAllowAddImports ? unit : null);
					fExperimentalCollector.setViewer(viewer);
					
					Point selection= viewer.getSelectedRange();
					if (selection.y > 0)
						fExperimentalCollector.setReplacementLength(selection.y);
					
					unit.codeComplete(offset, fExperimentalCollector);
				}
			} catch (JavaModelException x) {
				Shell shell= viewer.getTextWidget().getShell();
				ErrorDialog.openError(shell, JavaTextMessages.getString("CompletionProcessor.error.accessing.title"), JavaTextMessages.getString("CompletionProcessor.error.accessing.message"), x.getStatus()); 
			}				
			results= fExperimentalCollector.getResults();
		} else {
			try {
				if (unit != null) {
	
					fCollector.reset(offset, unit.getJavaProject(), fAllowAddImports ? unit : null);
					Point selection= viewer.getSelectedRange();
					if (selection.y > 0)
						fCollector.setReplacementLength(selection.y);
					
					unit.codeComplete(offset, fCollector);
				}
			} catch (JavaModelException x) {
				Shell shell= viewer.getTextWidget().getShell();