Bug 51763 Source -> Override methods fails in inner classes [code manipulation]
In Version: 3.0.0 Build id: 200312182000 Type the following in the Java editor, in the header of a class : private MouseTrackAdapter mouseTrackListener = new MouseTrackAdapter() { XXX }; right mouse click where the XXX in the above line is and choose Source -> Override/Implement methods. You get the correct methods in the pop up. choose some, and say ok. You get an error and the methods are not generated.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OverrideMethodsAction.java
return type.getCompilationUnit() != null && type.isClass() && !type.isAnonymous();
		}
		if ((selection.size() == 1) && (selection.getFirstElement() instanceof ICompilationUnit))
			return true;
		return false;
	}
	
	/* (non-Javadoc)
	 * Method declared on SelectionDispatchAction
	 */
	public void run(IStructuredSelection selection) {
		Shell shell= getShell();
		try {
			IType type= getSelectedType(selection);
			if (type == null) {
				MessageDialog.openInformation(shell, getDialogTitle(), ActionMessages.getString("OverrideMethodsAction.not_applicable")); 
				return;
			}	
			if (!ElementValidator.check(type, getShell(), getDialogTitle(), false) || !ActionUtil.isProcessable(getShell(), type)) {
				return;
			}
						
			if (type == null) {
				MessageDialog.openError(shell, getDialogTitle(), ActionMessages.getString("OverrideMethodsAction.error.type_removed_in_editor")); 
				return;
			}
			
			run(shell, type);
		} catch (CoreException e) {