Bug 62794 Stub on code assist: Should check if method name is valid Java id
20040518 - between two method, enter 'while' press code assist - proposal is to create method 'while' created method is of course invalid -> should check if method name is not a keyword
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodCompletionProposal.java
} else {
			buf.append(" - "); 
			buf.append(JavaTextMessages.getString("MethodCompletionProposal.constructor.label")); 
		}
		return buf.toString();
	}
	/* (non-Javadoc)
	 * @see JavaTypeCompletionProposal#updateReplacementString(IDocument, char, int, ImportsStructure)
	 */
	protected boolean updateReplacementString(IDocument document, char trigger, int offset, ImportsStructure impStructure) throws CoreException, BadLocationException {
		
		CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();
		boolean addComments= settings.createComments;
		String[] empty= new String[0];
		String lineDelim= StubUtility.getLineDelimiterFor(document);
		String declTypeName= fType.getTypeQualifiedName('.');
		StringBuffer buf= new StringBuffer();
		if (addComments) {
			String comment= CodeGeneration.getMethodComment(fType.getCompilationUnit(), declTypeName, fMethodName, empty, empty, fReturnTypeSig, null, String.valueOf('\n'));
			if (comment != null) {
				buf.append(comment);
				buf.append('\n');
			}					
		}
		if (fReturnTypeSig != null) {
			buf.append("private "); 
		} else {
			buf.append("public "); 
		}