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.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java
}
		
		return false; 
	}
	
	private boolean prefIndentBracesForTypes() {
		Plugin plugin= JavaCore.getPlugin();
		if (plugin != null) {
			String option= JavaCore.getOption(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_TYPE_DECLARATION);
			return option.equals(DefaultCodeFormatterConstants.NEXT_LINE_SHIFTED);
		}
		
		return false; 
	}
	
	private int prefContinuationIndent() {
		Plugin plugin= JavaCore.getPlugin();
		if (plugin != null) {
			String option= JavaCore.getOption(DefaultCodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION);
			try {
				return Integer.parseInt(option);
			} catch (NumberFormatException e) {
				
			}
		}
		
		return 2; 
	}
}