Bug 30749 "Can't inline abstract methods" complained for inlining expression
For the code fragment: boolean isSaved = false; FooSet q = getSP(name, value); FooSet a = getP(m.getR(MT.RType.A)); FooSet b = getP(m.getR(MT.RType.B)); FooSet c = getP(m.getR(MT.RType.C)); db.item().addP(id, isSaved, q, a, b, c); When I select "isSaved" in the last line and hit ALT-SHIFT-R, I get the message "Can't inline abstract methods".
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/InlineAction.java
ICompilationUnit cu= getCompilationUnit();
		if (cu == null)
			return;
		if (fInlineMethod.isEnabled() && tryInlineMethod(cu, selection))
			return;
		
		if (fInlineTemp.isEnabled() && tryInlineTemp(cu, selection))
			return;
		if (fInlineConstant.isEnabled() && tryInlineConstant(cu, selection))
			return;
	
		MessageDialog.openInformation(getShell(), RefactoringMessages.getString("InlineAction.dialog_title"), RefactoringMessages.getString("InlineAction.select")); 
	}
	
	private boolean tryInlineTemp(ICompilationUnit cu, ITextSelection selection){
		InlineTempRefactoring inlineTemp= new InlineTempRefactoring(cu, selection.getOffset(), selection.getLength());
		if (inlineTemp.checkIfTempSelectedSelected().hasFatalError())
			return false;
		fInlineTemp.run(selection);
		return true;
	}
	
	private boolean tryInlineMethod(ICompilationUnit cu, ITextSelection selection){
		InlineMethodRefactoring inlineMethodRef= InlineMethodRefactoring.create(
			cu, selection.getOffset(), selection.getLength(),
			JavaPreferencesSettings.getCodeGenerationSettings());
		if (inlineMethodRef == null)	
			return false;
		fInlineMethod.run(selection);
		return true;