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
/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.ui.actions;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jface.text.IRewriteTarget;