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
} catch (JavaModelException e) {
			ExceptionHandler.handle(e, getShell(), getDialogTitle(), null);
		} catch (CoreException e) {
			ExceptionHandler.handle(e, getShell(), getDialogTitle(), ActionMessages.getString("OverrideMethodsAction.error.actionfailed")); 
		}
	}
	
	
	private void run(Shell shell, IType type) throws JavaModelException, CoreException {
		OverrideMethodDialog dialog= new OverrideMethodDialog(shell, fEditor, type, false);
		IMethod[] selected= null;
		if (!dialog.hasMethodsToOverride()) {
			MessageDialog.openInformation(shell, getDialogTitle(), ActionMessages.getString("OverrideMethodsAction.error.nothing_found")); 
			return;
		}
		int dialogResult= dialog.open();
		if (dialogResult == Window.OK) {		
			Object[] checkedElements= dialog.getResult();
			if (checkedElements == null)
				return;
			ArrayList result= new ArrayList(checkedElements.length);
			for (int i= 0; i < checkedElements.length; i++) {
				Object curr= checkedElements[i];
				if (curr instanceof IMethod) {
					result.add(curr);
				}
			}
			selected= (IMethod[]) result.toArray(new IMethod[result.size()]);
			
			CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();