Bug 6700 Code assist should not just beep
suggest to show a status message: Could not complete due to syntax errors. This is also better for accessability reasons.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
setDocumentProvider(JavaPlugin.getDefault().getCompilationUnitDocumentProvider());
		setEditorContextMenuId("#CompilationUnitEditorContext"); 
		setRulerContextMenuId("#CompilationUnitRulerContext"); 
		setOutlinerContextMenuId("#CompilationUnitOutlinerContext"); 
		setHelpContextId(IJavaHelpContextIds.COMPILATION_UNIT_EDITOR);
		fSavePolicy= null;
			
		fJavaEditorErrorTickUpdater= new JavaEditorErrorTickUpdater(this);
	}
	
	/**
	 * @see AbstractTextEditor#createActions()
	 */
	protected void createActions() {
		
		super.createActions();
		
		setAction("ContentAssistProposal", new TextOperationAction(JavaEditorMessages.getResourceBundle(), "ContentAssistProposal.", this, ISourceViewer.CONTENTASSIST_PROPOSALS));			 
		setAction("ContentAssistContextInformation", new TextOperationAction(JavaEditorMessages.getResourceBundle(), "ContentAssistContextInformation.", this, ISourceViewer.CONTENTASSIST_CONTEXT_INFORMATION));			 
		setAction("AddImportOnSelection", new AddImportOnSelectionAction(this));		 
		setAction("OrganizeImports", new OrganizeImportsAction(this)); 
		
		setAction("Comment", new TextOperationAction(JavaEditorMessages.getResourceBundle(), "Comment.", this, ITextOperationTarget.PREFIX)); 
		setAction("Uncomment", new TextOperationAction(JavaEditorMessages.getResourceBundle(), "Uncomment.", this, ITextOperationTarget.STRIP_PREFIX)); 
		setAction("Format", new TextOperationAction(JavaEditorMessages.getResourceBundle(), "Format.", this, ISourceViewer.FORMAT)); 
		
		setAction("ManageBreakpoints", new BreakpointRulerAction(getVerticalRuler(), this)); 
		setAction("SurroundWithTryCatch", new SurroundWithTryCatchAction(this)); 
		
		setAction(ITextEditorActionConstants.RULER_DOUBLE_CLICK, getAction("ManageBreakpoints"));