Project: JDT
Bug 243162 [inline] Inline... missing from context menu if selection includes argument list
Reported: 2008-08-05 09:38:07 | Status: resolved fixed

I20080805-0100 Refactor > Inline... is missing from context menu if the selection includes the method's argument list, e.g. "getValue()" in the initializer or "Math.abs(-1)" or "abs(-1)". Works fine if selection/caret is only in method name. public class Try { int fField= getValue(); private int getValue() { return Math.abs(-1); } }

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineMethodRefactoring.java