From 9e4d3492cdbd07eb5c574f383a33a9c491fdcf54 Mon Sep 17 00:00:00 2001 From: Rustam Vishnyakov Date: Wed, 9 Nov 2016 15:28:59 +0300 Subject: [PATCH] Some explanatory JavaDoc --- .../intellij/formatting/FormattingMode.java | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/formatting/FormattingMode.java b/platform/lang-impl/src/com/intellij/formatting/FormattingMode.java index 165482ce317b..758569f8a283 100644 --- a/platform/lang-impl/src/com/intellij/formatting/FormattingMode.java +++ b/platform/lang-impl/src/com/intellij/formatting/FormattingMode.java @@ -16,10 +16,23 @@ package com.intellij.formatting; /** - * @author Denis Zhdanov - * @since 8/22/12 2:44 PM + * The current formatting mode. */ public enum FormattingMode { - - REFORMAT, ADJUST_INDENT, ADJUST_INDENT_ON_ENTER + + /** + * Normal reformat (modifies indents and inline whitespaces). + */ + REFORMAT, + + /** + * Line indent adjustment. + */ + ADJUST_INDENT, + + /** + * Indent adjustment on a new line after Enter. In some cases a behavior may be different from the case when the same code is + * reformatted or indented, especially when some more input is expected to follow on the new line. + */ + ADJUST_INDENT_ON_ENTER }