Bug 17703 Edit-Add Task action should use Workbench dialog as Java Editor does
F1 - select CU in packages view - execute File->Add Task observe: you get a different dialog than executing the action from the Java editors ruler context menu
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddTaskAction.java
public AddTaskAction(IWorkbenchSite site) {
		super(site);
		setEnabled(false);
	}
	protected void selectionChanged(IStructuredSelection selection) {
		setEnabled(getElement(selection) != null);
	}
	protected void run(IStructuredSelection selection) {
		IResource resource= getElement(selection);