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
super(ReorgMessages.getString("DeleteSourceReferencesAction.delete"), provider); 
	}
	protected void perform() throws CoreException {
		if (!confirmDelete())
			return;
		Map mapping= SourceReferenceUtil.groupByFile(getElementsToProcess()); 
				
		List emptyCuList= Arrays.asList(getCusLeftEmpty(mapping));
		
		for (Iterator iter= mapping.keySet().iterator(); iter.hasNext();) {
			IFile file= (IFile)iter.next();
			if (emptyCuList.contains(JavaCore.create(file))) 
				continue;
			if (isReadOnly(file))
				continue;
			deleteAll(mapping, file);
		}
		
		ICompilationUnit[] notDeleted= deleteEmptyCus(mapping);
		for (int i= 0; i < notDeleted.length; i++) {
			IFile file= (IFile)notDeleted[i].getUnderlyingResource();
			if (isReadOnly(file))
				continue;
			deleteAll(mapping, file);
		}
	}
	private static boolean isReadOnly(IFile file){
		if (! file.isReadOnly())
			return false;
		if (ResourcesPlugin.getWorkspace().validateEdit(new IFile[]{file}, null).isOK())