Bug 13189 Refactoring - deleting fields - context menu is overriden by message dialog
20020409-I on Linux-Motif and w2k: 1. Setup JUnit 2. Enable option 'Code Generator->Remove prefix from field names' 3. Open TestCase.java 4. In the outliner, right click on 'fName'. 5. Observe: No context menu is shown, instead, it asks me right away if I want to delete the getter/setter as well.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/DeleteSourceReferencesAction.java
return new DeleteSourceReferenceEdit(ref, cu);
	}
	
	/**
	 * returns cus that have <b>not</b> been deleted
	 */
	private ICompilationUnit[] deleteEmptyCus(Map mapping) throws JavaModelException {
		ICompilationUnit[] cusToDelete= getCusLeftEmpty(mapping);
		if (cusToDelete.length == 0)
			return cusToDelete;
			
		if (! confirmCusDelete(cusToDelete))
			return cusToDelete;
		
		List notDeletedCus= new ArrayList();
		notDeletedCus.addAll(Arrays.asList(cusToDelete));	
		
		for (int i= 0; i < cusToDelete.length; i++) {
			if (isReadOnly(cusToDelete[i]) && (! isOkToDeleteReadOnly(cusToDelete[i])))
				continue;
			cusToDelete[i].delete(false, new NullProgressMonitor());
			notDeletedCus.remove(cusToDelete[i]);
		}	
		return (ICompilationUnit[]) notDeletedCus.toArray(new ICompilationUnit[notDeletedCus.size()]);
	}
	
	private static boolean isReadOnly(ICompilationUnit cu) throws JavaModelException{
		if (cu.isReadOnly())
			return true;
		if (cu.getUnderlyingResource() != null && cu.getUnderlyingResource().isReadOnly())