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 IMethod[0];
		}
	}
	
	protected boolean confirmDelete() {
		String title= ReorgMessages.getString("deleteAction.confirm.title"); 
		String label= ReorgMessages.getString("deleteAction.confirm.message"); 
		Shell parent= JavaPlugin.getActiveWorkbenchShell();
		return MessageDialog.openQuestion(parent, title, label);
	}
	
	protected  boolean confirmCusDelete(ICompilationUnit[] cusToDelete) {
		String message;
		if (cusToDelete.length == 1) 
			message= "After the delete operation the compilation unit \'" + cusToDelete[0].getElementName() + "\' contains no types. \nOK to delete it as well?";
		else
			message= "After the delete operation " + cusToDelete.length + " compilation units contain no types. \nOK to delete them as well?";	
		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);
	}
	
}