Bug 47315 Add quick fix for remove an unused @ Javadoc tag. [quick fix]
The 3.0.m5 Javadoc warnings are *great* and will improve our Javadocs. Could we hae quick fixes for the new warnings when possible. For example: when a @throws is no longer valid, a quick fix to remove the comment would be great. Version 3.0.m5.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavadocTagsSubProcessor.java
if ("@param".equals(curr.getTagName())) { 
				String arg= getArgument(curr);
				if (arg != null && previousArgs.contains(arg)) {
					rewriter.insertAfter(newElement, curr, null);
					return;
				}
			}
		}
		if (!tags.isEmpty()) {
			TagElement first= (TagElement) tags.get(0);
			if (first.getTagName() == null) {
				rewriter.insertAfter(newElement, first, null);
				return;
			}
		}
		rewriter.insertFirst(newElement, null);
	}
	
	private static String getArgument(TagElement curr) {
		List fragments= curr.fragments();
		if (!fragments.isEmpty()) {
			Object first= fragments.get(0);
			if (first instanceof Name) {
				return ASTNodes.getSimpleNameIdentifier((Name) first);
			}
		}
		return null;
	}
}