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 false;
		}
		return true;
	}	
	
	
	protected ISourceReference[] getElementsToProcess() {
		ISourceReference[] elements= super.getElementsToProcess();
		IField[] fields= getFields(elements);
		if (fields.length == 0)
			return elements;
		IMethod[] gettersSetters= getGettersSettersForFields(fields);		
		if (gettersSetters.length == 0)
			return elements;
		Set getterSetterSet= new HashSet(Arrays.asList(gettersSetters));
		getterSetterSet.removeAll(Arrays.asList(elements));
		if (getterSetterSet.isEmpty())
			return elements;
		if (! confirmGetterSetterDelete())
			return elements;
		
		Set newElementSet= new HashSet(Arrays.asList(elements));
		newElementSet.addAll(getterSetterSet);
		return (ISourceReference[]) newElementSet.toArray(new ISourceReference[newElementSet.size()]);
	}
	private static ISourceReference[] getNonFields(ISourceReference[] elements){
		List nonFields= new ArrayList();
		for (int i= 0; i < elements.length; i++) {
			if (! (elements[i] instanceof IField))
				nonFields.add(elements[i]);