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
package org.eclipse.jdt.ui.actions;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbenchSite;
import org.eclipse.ui.help.WorkbenchHelp;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.internal.ui.actions.SelectionConverter;
import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor;
import org.eclipse.jdt.internal.ui.preferences.JavaPreferencesSettings;
import org.eclipse.jdt.internal.ui.refactoring.actions.*;
import org.eclipse.jdt.internal.corext.Assert;
import org.eclipse.jdt.internal.corext.refactoring.code.InlineConstantRefactoring;
import org.eclipse.jdt.internal.corext.refactoring.code.InlineMethodRefactoring;
import org.eclipse.jdt.internal.corext.refactoring.code.InlineTempRefactoring;
import org.eclipse.jdt.internal.ui.refactoring.RefactoringMessages;
/**
 * Inlines a method, local variable or a static final field.
 *
 * <p>
 * This class may be instantiated; it is not intended to be subclassed.
 * </p>
 */
public class InlineAction extends SelectionDispatchAction {