inplace introduce: preserve offset corresponding to editor changes

This commit is contained in:
anna
2011-08-09 12:11:07 +04:00
parent 8d24f9e0ed
commit ce10ecce7f
4 changed files with 47 additions and 3 deletions
@@ -55,6 +55,17 @@ public class InplaceIntroduceConstantTest extends AbstractInplaceIntroduceTest {
});
}
public void testReplaceAllFromSecondOccurrence() throws Exception {
doTest(new Pass<AbstractInplaceIntroducer>() {
@Override
public void pass(AbstractInplaceIntroducer inplaceIntroduceFieldPopup) {
type("O");
inplaceIntroduceFieldPopup.setReplaceAllOccurrences(true);
}
});
}
public void testConflictingConstantName() throws Exception {
doTest(new Pass<AbstractInplaceIntroducer>() {