Bug 21808 delete confirmation prompts inconsistent with Navigator view [ccp]
Select a .java file in the Package Explorer and then Delete from its context menu. A Confirm Delete windows appears saying, "Are you sure you want to delete the selected element(s)? Yes or No. If you try the same thing from the Navigator view, a Confirm Resource Delete window appears saying, "Are you sure you want to delete 'xxx.java'? Yes or No. Likewise, if you select multiple resources to delete, you will get different behavior between the Package Explorer and Navigator views. For the former, the Confirm Delete window appears saying, "Are you sure you want to delete the selected element(s)?" Yes or No. For the latter, a Confirm Multiple Resource Delete window appears saying, "Are you sure you want to delete these 3 resources?" Yes or No. So, the delete confirmation prompts that appear in the Packages Explorer view aren't consistent with those in the Navigator view.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/DeleteSourceReferencesAction.java
protected  boolean confirmCusDelete(ICompilationUnit[] cusToDelete) {
		String message;
		if (cusToDelete.length == 1){
			message= ReorgMessages.getFormattedString("DeleteSourceReferencesAction.cu_empty", cusToDelete[0].getElementName());
		} else {
			message= ReorgMessages.getFormattedString("DeleteSourceReferencesAction.cus_empty", String.valueOf(cusToDelete.length));
		}	
		return MessageDialog.openQuestion(JavaPlugin.getActiveWorkbenchShell(), ReorgMessages.getString("DeleteSourceReferencesAction.delete1"), message); 
	}
	
	
	protected boolean confirmGetterSetterDelete() {
		String title= ReorgMessages.getString("DeleteSourceReferencesAction.confirm_gs_delete"); 
		String label= ReorgMessages.getString("DeleteSourceReferencesAction.delete_gs"); 
		Shell parent= JavaPlugin.getActiveWorkbenchShell();
		return MessageDialog.openQuestion(parent, title, label);
	}
	
    /*
     * @see SourceReferenceAction#canWorkOn(Object)
     */
    protected boolean canWorkOn(Object element) throws JavaModelException {
    	if (! super.canWorkOn(element))
    		return false;
    	if (element instanceof IMember && ((IMember)element).isBinary())
    		return false;
    	return true;	
    }
}