generate toString(): replace policy: remember user choice where to insert, it would be used for the initial toString() generation (IDEA-100244)

This commit is contained in:
anna
2013-02-11 19:14:27 +01:00
parent a5e24aae64
commit 9561ad705d
@@ -36,7 +36,7 @@ public class ReplacePolicy implements ConflictResolutionPolicy {
}
public void setNewMethodStrategy(InsertNewMethodStrategy strategy) {
// not needed here
DuplicatePolicy.getInstance().setNewMethodStrategy(strategy);
}
public PsiMethod applyMethod(PsiClass clazz, PsiMethod existingMethod, @NotNull PsiMethod newMethod, Editor editor) throws IncorrectOperationException {