Bug 20544 [typing] Auto-indent doesn't work for simple IF statements
if (value == null)<<ENTER_KEY>> should cause the indent level to increase. then I could type: if (value == null) return;
org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/JavaHeuristicScannerTest.java
public void testExceptionIndentation1() {
		fDocument.set("public void processChildren(CompositeExpression result, IConfigurationElement element) throws CoreException {\n" + 
				"			IConfigurationElement[] children= element.getChildren();\n" + 
				"			if (children != null) {\n" + 
				"				for (int i= 0; i < children.length; i++) {\n" + 
				"					Expression child= parse(children[i]);\n" + 
				"					if (child == null)\n" + 
				"						new Bla(new CoreExeption(new Status(IStatus.ERROR, JavaPlugin.getPluginId()");
	
		String indent= fScanner.computeIndentation(fDocument.getLength()).toString();
		Assert.assertEquals("							", indent);
	}
	
	public void testExceptionIndentation2() {
		fDocument.set("public void processChildren(CompositeExpression result, IConfigurationElement element) throws CoreException {\n" + 
				"			IConfigurationElement[] children= element.getChildren();\n" + 
				"			if (children != null) {\n" + 
				"				for (int i= 0; i < children.length; i++) {\n" + 
				"					Expression child= parse(children[i]);\n" + 
				"					if (child == null)\n" + 
				"						new Bla(new CoreExeption(new Status(IStatus.ERROR, JavaPlugin.getPluginId(),");
		
		String indent= fScanner.computeIndentation(fDocument.getLength()).toString();
		Assert.assertEquals("							", indent);
	}
	
	public void testExceptionIndentation3() {
		fDocument.set("public void processChildren(CompositeExpression result, IConfigurationElement element) throws CoreException {\n" + 
				"			IConfigurationElement[] children= element.getChildren();\n" +