IDEA-69656 Complete Current Statement: Provide support for completing 'condition' section of 'for' statement

'Update' section of 'for' statement may be smart-completed now
This commit is contained in:
Denis Zhdanov
2011-05-16 13:39:04 +04:00
parent 7c42e2d07c
commit ea998911e2
5 changed files with 114 additions and 55 deletions
@@ -0,0 +1,6 @@
public class Foo {
void test(int i) {
for (int j = 1; j < 10<caret>) {
}
}
}
@@ -0,0 +1,6 @@
public class Foo {
void test(int i) {
for (int j = 1; j < 10; <caret>) {
}
}
}
@@ -214,6 +214,8 @@ public class CompleteStatementTest extends EditorActionTestCase {
doTest();
}
public void testForUpdateGeneration() throws Exception { doTest(); }
private void doTestBracesNextLineStyle() throws Exception {
CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(getProject());
settings.BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE;