Bug 6536 Add Javadoc on field in TH does nothing
1. Select a field in the Type Hierarchy view 2. From its context menu select "Add Javadoc" ==> nothing happens. Either this menu should be removed or (preferably) the action should add the fields Javadoc.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddJavaDocStubAction.java
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IEditorPart;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.JavaUIMessages;
import org.eclipse.jdt.internal.corext.codegeneration.AddJavaDocStubOperation;
import org.eclipse.jdt.internal.corext.codegeneration.CodeGenerationSettings;
import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility;
import org.eclipse.jdt.internal.ui.preferences.JavaPreferencesSettings;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
/**
 * Create Java Doc Stubs for selected members
 * Always forces the he field to be in an open editor. The result is unsaved,
 * so the user can decide if he wnats to accept the changes
 */
public class AddJavaDocStubAction extends Action {
	private ISelectionProvider fSelectionProvider;
	public AddJavaDocStubAction(ISelectionProvider selProvider) {
		super(JavaUIMessages.getString("AddJavaDocStubAction.label")); 
		setDescription(JavaUIMessages.getString("AddJavaDocStubAction.description")); 
		setToolTipText(JavaUIMessages.getString("AddJavaDocStubAction.tooltip")); 
		fSelectionProvider= selProvider;
	}
	public void run() {
		IMember[] members= getSelectedMembers();
		if (members == null || members.length == 0) {
			return;
		}