Java Code Examples for com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable#showStandardOptions()

The following examples show how to use com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable#showStandardOptions() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FusionLanguageCodeStyleSettingsProvider.java    From intellij-neos with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
    if (settingsType == SettingsType.SPACING_SETTINGS) {
        consumer.showStandardOptions("SPACE_AROUND_ASSIGNMENT_OPERATORS");
        consumer.renameStandardOption("SPACE_AROUND_ASSIGNMENT_OPERATORS", "Assignment Operators");
        consumer.showStandardOptions("SPACES_BEFORE_LEFT_BRACE");
        consumer.showStandardOptions("SPACE_AFTER_COMMA");
        consumer.showStandardOptions("SPACE_BEFORE_COMMA");
    } else if (settingsType == SettingsType.BLANK_LINES_SETTINGS) {
        consumer.showStandardOptions("KEEP_BLANK_LINES_IN_CODE");
    }
}
 
Example 2
Source File: FluidLanguageCodeStyleSettingsProvider.java    From idea-php-typo3-plugin with MIT License 4 votes vote down vote up
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
    if (settingsType == SettingsType.WRAPPING_AND_BRACES_SETTINGS) {
        consumer.showStandardOptions(new String[]{"RIGHT_MARGIN"});
        consumer.showStandardOptions(new String[]{"WRAP_ON_TYPING"});
    }
}
 
Example 3
Source File: CsvLanguageCodeStyleSettingsProvider.java    From intellij-csv-validator with Apache License 2.0 4 votes vote down vote up
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
    if (settingsType == SettingsType.LANGUAGE_SPECIFIC) {
        consumer.showCustomOption(CsvCodeStyleSettings.class,
                "SPACE_BEFORE_SEPARATOR",
                "Space before separator",
                "Separator");
        consumer.showCustomOption(CsvCodeStyleSettings.class,
                "SPACE_AFTER_SEPARATOR",
                "Space after separator",
                "Separator");

        consumer.showCustomOption(CsvCodeStyleSettings.class,
                "TRIM_LEADING_WHITE_SPACES",
                "Trim leading whitespaces",
                "Trimming");
        consumer.showCustomOption(CsvCodeStyleSettings.class,
                "TRIM_TRAILING_WHITE_SPACES",
                "Trim trailing whitespaces",
                "Trimming");

        consumer.showCustomOption(CsvCodeStyleSettings.class,
                "TABULARIZE",
                "Enabled",
                "Tabularize (ignores Trimming settings)");
        consumer.showCustomOption(CsvCodeStyleSettings.class,
                "WHITE_SPACES_OUTSIDE_QUOTES",
                "Trimming/spacing outside quotes",
                "Tabularize (ignores Trimming settings)");
        consumer.showCustomOption(CsvCodeStyleSettings.class,
                "LEADING_WHITE_SPACES",
                "Leading whitespaces",
                "Tabularize (ignores Trimming settings)");
        consumer.showCustomOption(CsvCodeStyleSettings.class,
                "ENABLE_WIDE_CHARACTER_DETECTION",
                "East Asian charset support (slower!)",
                "Tabularize (ignores Trimming settings)");
        consumer.showCustomOption(CsvCodeStyleSettings.class,
                "TREAT_AMBIGUOUS_CHARACTERS_AS_WIDE",
                "Double wide EA ambiguous characters",
                "Tabularize (ignores Trimming settings)");
    }

    if (settingsType == SettingsType.WRAPPING_AND_BRACES_SETTINGS) {
        consumer.showStandardOptions(
                CodeStyleSettingsCustomizable.WrappingOrBraceOption.RIGHT_MARGIN.toString(),
                CodeStyleSettingsCustomizable.WrappingOrBraceOption.WRAP_LONG_LINES.toString(),
                CodeStyleSettingsCustomizable.WrappingOrBraceOption.WRAP_ON_TYPING.toString()
        );
    }
}
 
Example 4
Source File: CSharpLanguageCodeStyleSettingsProvider.java    From consulo-csharp with Apache License 2.0 4 votes vote down vote up
@Override
public void customizeSettings(@Nonnull CodeStyleSettingsCustomizable consumer, @Nonnull SettingsType settingsType)
{
	if(settingsType == SettingsType.SPACING_SETTINGS)
	{
		consumer.showStandardOptions("SPACE_BEFORE_METHOD_CALL_PARENTHESES", "SPACE_BEFORE_METHOD_PARENTHESES", "SPACE_BEFORE_IF_PARENTHESES", "SPACE_BEFORE_WHILE_PARENTHESES",
				"SPACE_BEFORE_FOR_PARENTHESES", "SPACE_BEFORE_CATCH_PARENTHESES", "SPACE_BEFORE_SWITCH_PARENTHESES", "SPACE_AROUND_ASSIGNMENT_OPERATORS", "SPACE_AROUND_LOGICAL_OPERATORS",
				"SPACE_AROUND_EQUALITY_OPERATORS", "SPACE_AROUND_RELATIONAL_OPERATORS", "SPACE_AROUND_ADDITIVE_OPERATORS", "SPACE_AROUND_MULTIPLICATIVE_OPERATORS",
				"SPACE_AROUND_SHIFT_OPERATORS", "SPACE_BEFORE_CLASS_LBRACE", "SPACE_BEFORE_METHOD_LBRACE", "SPACE_BEFORE_IF_LBRACE", "SPACE_BEFORE_ELSE_LBRACE", "SPACE_BEFORE_WHILE_LBRACE",
				"SPACE_BEFORE_FOR_LBRACE", "SPACE_BEFORE_SWITCH_LBRACE", "SPACE_BEFORE_TRY_LBRACE", "SPACE_BEFORE_CATCH_LBRACE", "SPACE_BEFORE_WHILE_KEYWORD", "SPACE_BEFORE_ELSE_KEYWORD",
				"SPACE_BEFORE_CATCH_KEYWORD", "SPACE_WITHIN_METHOD_CALL_PARENTHESES", "SPACE_WITHIN_METHOD_PARENTHESES", "SPACE_WITHIN_IF_PARENTHESES", "SPACE_WITHIN_WHILE_PARENTHESES",
				"SPACE_WITHIN_FOR_PARENTHESES", "SPACE_WITHIN_CATCH_PARENTHESES", "SPACE_WITHIN_SWITCH_PARENTHESES", "SPACE_BEFORE_QUEST", "SPACE_AFTER_QUEST", "SPACE_BEFORE_COLON",
				"SPACE_AFTER_COLON", "SPACE_AFTER_COMMA", "SPACE_AFTER_COMMA_IN_TYPE_ARGUMENTS", "SPACE_BEFORE_COMMA", "SPACE_AROUND_UNARY_OPERATOR", "SPACE_WITHIN_BRACKETS",
				"SPACE_BEFORE_METHOD_PARENTHESES", "SPACE_AROUND_LAMBDA_ARROW", "SPACE_BEFORE_SEMICOLON", "SPACE_AFTER_SEMICOLON");

		// parentheses settings
		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_FOREACH_PARENTHESES", "'foreach' parentheses", CodeStyleSettingsCustomizable.SPACES_BEFORE_PARENTHESES,
				CodeStyleSettingsCustomizable.OptionAnchor.BEFORE, "SPACE_BEFORE_FOR_PARENTHESES");

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_USING_PARENTHESES", "'using' parentheses", CodeStyleSettingsCustomizable.SPACES_BEFORE_PARENTHESES);

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_LOCK_PARENTHESES", "'lock' parentheses", CodeStyleSettingsCustomizable.SPACES_BEFORE_PARENTHESES);

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_FIXED_PARENTHESES", "'fixed' parentheses", CodeStyleSettingsCustomizable.SPACES_BEFORE_PARENTHESES);

		// left brace settings
		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_NAMESPACE_LBRACE", "Namespace left brace", CodeStyleSettingsCustomizable.SPACES_BEFORE_LEFT_BRACE,
				CodeStyleSettingsCustomizable.OptionAnchor.BEFORE, "SPACE_BEFORE_CLASS_LBRACE");

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_EVENT_LBRACE", "Event left brace", CodeStyleSettingsCustomizable.SPACES_BEFORE_LEFT_BRACE,
				CodeStyleSettingsCustomizable.OptionAnchor.AFTER, "SPACE_BEFORE_METHOD_LBRACE");

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_PROPERTY_LBRACE", "Property left brace", CodeStyleSettingsCustomizable.SPACES_BEFORE_LEFT_BRACE,
				CodeStyleSettingsCustomizable.OptionAnchor.AFTER, "SPACE_BEFORE_METHOD_LBRACE");

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_INDEX_METHOD_LBRACE", "Index methd left brace", CodeStyleSettingsCustomizable.SPACES_BEFORE_LEFT_BRACE,
				CodeStyleSettingsCustomizable.OptionAnchor.AFTER, "SPACE_BEFORE_METHOD_LBRACE");

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_FOREACH_LBRACE", "'foreach' left brace", CodeStyleSettingsCustomizable.SPACES_BEFORE_LEFT_BRACE,
				CodeStyleSettingsCustomizable.OptionAnchor.BEFORE, "SPACE_BEFORE_FOR_LBRACE");

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_UNSAFE_LBRACE", "'unsafe' left brace", CodeStyleSettingsCustomizable.SPACES_BEFORE_LEFT_BRACE);

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_USING_LBRACE", "'using' left brace", CodeStyleSettingsCustomizable.SPACES_BEFORE_LEFT_BRACE);

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_LOCK_LBRACE", "'lock' left brace", CodeStyleSettingsCustomizable.SPACES_BEFORE_LEFT_BRACE);

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "SPACE_BEFORE_FIXED_LBRACE", "'fixed' left brace", CodeStyleSettingsCustomizable.SPACES_BEFORE_LEFT_BRACE);
	}
	else if(settingsType == SettingsType.BLANK_LINES_SETTINGS)
	{
		consumer.showStandardOptions("KEEP_BLANK_LINES_IN_CODE", "KEEP_BLANK_LINES_IN_DECLARATIONS", "KEEP_BLANK_LINES_BEFORE_RBRACE", "BLANK_LINES_AROUND_FIELD", "BLANK_LINES_AROUND_METHOD");
	}
	else if(settingsType == SettingsType.WRAPPING_AND_BRACES_SETTINGS)
	{
		consumer.showStandardOptions("KEEP_LINE_BREAKS", "KEEP_FIRST_COLUMN_COMMENT", "BRACE_STYLE", "CLASS_BRACE_STYLE", "METHOD_BRACE_STYLE", "CALL_PARAMETERS_WRAP",
				"CALL_PARAMETERS_LPAREN_ON_NEXT_LINE", "CALL_PARAMETERS_RPAREN_ON_NEXT_LINE", "METHOD_PARAMETERS_WRAP", "METHOD_PARAMETERS_LPAREN_ON_NEXT_LINE",
				"METHOD_PARAMETERS_RPAREN_ON_NEXT_LINE", "ELSE_ON_NEW_LINE", "WHILE_ON_NEW_LINE", "CATCH_ON_NEW_LINE", "ALIGN_MULTILINE_PARAMETERS", "ALIGN_MULTILINE_PARAMETERS_IN_CALLS",
				"ALIGN_MULTILINE_BINARY_OPERATION", "BINARY_OPERATION_WRAP", "BINARY_OPERATION_SIGN_ON_NEXT_LINE", "TERNARY_OPERATION_WRAP", "TERNARY_OPERATION_SIGNS_ON_NEXT_LINE",
				"PARENTHESES_EXPRESSION_LPAREN_WRAP", "PARENTHESES_EXPRESSION_RPAREN_WRAP", "ALIGN_MULTILINE_TERNARY_OPERATION", "ARRAY_INITIALIZER_WRAP",
				"ARRAY_INITIALIZER_LBRACE_ON_NEXT_LINE", "ARRAY_INITIALIZER_RBRACE_ON_NEXT_LINE", "LINE_COMMENT_AT_FIRST_COLUMN", "BLOCK_COMMENT_AT_FIRST_COLUMN");

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "KEEP_AUTO_PROPERTY_IN_ONE_LINE", "Simple property(event, index methods) in single line", CodeStyleSettingsCustomizable
				.WRAPPING_KEEP);

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "PREPROCESSOR_DIRECTIVES_AT_FIRST_COLUMN", "Preprocessor directives at first column", CodeStyleSettingsCustomizable
				.WRAPPING_KEEP);

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "NAMESPACE_BRACE_STYLE", "In namespace declaration", CodeStyleSettingsCustomizable.WRAPPING_BRACES, CodeStyleSettingsCustomizable
				.OptionAnchor.BEFORE, "CLASS_BRACE_STYLE", CodeStyleSettingsCustomizable.BRACE_PLACEMENT_OPTIONS, CodeStyleSettingsCustomizable.BRACE_PLACEMENT_VALUES);

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "EVENT_BRACE_STYLE", "In event declaration", CodeStyleSettingsCustomizable.WRAPPING_BRACES, CodeStyleSettingsCustomizable
				.OptionAnchor.AFTER, "METHOD_BRACE_STYLE", CodeStyleSettingsCustomizable.BRACE_PLACEMENT_OPTIONS, CodeStyleSettingsCustomizable.BRACE_PLACEMENT_VALUES);

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "PROPERTY_BRACE_STYLE", "In property declaration", CodeStyleSettingsCustomizable.WRAPPING_BRACES, CodeStyleSettingsCustomizable
				.OptionAnchor.AFTER, "METHOD_BRACE_STYLE", CodeStyleSettingsCustomizable.BRACE_PLACEMENT_OPTIONS, CodeStyleSettingsCustomizable.BRACE_PLACEMENT_VALUES);

		consumer.showCustomOption(CSharpCodeStyleSettings.class, "INDEX_METHOD_BRACE_STYLE", "In index method declaration", CodeStyleSettingsCustomizable.WRAPPING_BRACES,
				CodeStyleSettingsCustomizable.OptionAnchor.AFTER, "METHOD_BRACE_STYLE", CodeStyleSettingsCustomizable.BRACE_PLACEMENT_OPTIONS, CodeStyleSettingsCustomizable
						.BRACE_PLACEMENT_VALUES);
	}
}
 
Example 5
Source File: HaxeLanguageCodeStyleSettingsProvider.java    From intellij-haxe with Apache License 2.0 4 votes vote down vote up
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
  if (settingsType == SettingsType.SPACING_SETTINGS) {
    consumer.showStandardOptions("SPACE_BEFORE_METHOD_CALL_PARENTHESES",
                                 "SPACE_BEFORE_METHOD_PARENTHESES",
                                 "SPACE_BEFORE_IF_PARENTHESES",
                                 "SPACE_BEFORE_WHILE_PARENTHESES",
                                 "SPACE_BEFORE_FOR_PARENTHESES",
                                 "SPACE_BEFORE_CATCH_PARENTHESES",
                                 "SPACE_BEFORE_SWITCH_PARENTHESES",
                                 "SPACE_AROUND_ASSIGNMENT_OPERATORS",
                                 "SPACE_AROUND_LOGICAL_OPERATORS",
                                 "SPACE_AROUND_EQUALITY_OPERATORS",
                                 "SPACE_AROUND_RELATIONAL_OPERATORS",
                                 "SPACE_AROUND_ADDITIVE_OPERATORS",
                                 "SPACE_AROUND_MULTIPLICATIVE_OPERATORS",
                                 "SPACE_BEFORE_METHOD_LBRACE",
                                 "SPACE_BEFORE_IF_LBRACE",
                                 "SPACE_BEFORE_ELSE_LBRACE",
                                 "SPACE_BEFORE_WHILE_LBRACE",
                                 "SPACE_BEFORE_FOR_LBRACE",
                                 "SPACE_BEFORE_SWITCH_LBRACE",
                                 "SPACE_BEFORE_TRY_LBRACE",
                                 "SPACE_BEFORE_CATCH_LBRACE",
                                 "SPACE_BEFORE_WHILE_KEYWORD",
                                 "SPACE_BEFORE_ELSE_KEYWORD",
                                 "SPACE_BEFORE_CATCH_KEYWORD",
                                 "SPACE_WITHIN_METHOD_CALL_PARENTHESES",
                                 "SPACE_WITHIN_METHOD_PARENTHESES",
                                 "SPACE_WITHIN_IF_PARENTHESES",
                                 "SPACE_WITHIN_WHILE_PARENTHESES",
                                 "SPACE_WITHIN_FOR_PARENTHESES",
                                 "SPACE_WITHIN_CATCH_PARENTHESES",
                                 "SPACE_WITHIN_SWITCH_PARENTHESES",
                                 "SPACE_BEFORE_QUEST",
                                 "SPACE_AFTER_QUEST",
                                 "SPACE_BEFORE_COLON",
                                 "SPACE_AFTER_COLON",
                                 "SPACE_AFTER_COMMA",
                                 "SPACE_AFTER_COMMA_IN_TYPE_ARGUMENTS",
                                 "SPACE_BEFORE_COMMA",
                                 "SPACE_AROUND_UNARY_OPERATOR"
    );
    consumer.showCustomOption(HaxeCodeStyleSettings.class, "SPACE_AROUND_ARROW", "Around ->",
                              CodeStyleSettingsCustomizable.SPACES_OTHER, CodeStyleSettingsCustomizable.OptionAnchor.NONE);
    consumer.showCustomOption(HaxeCodeStyleSettings.class, "SPACE_BEFORE_TYPE_REFERENCE_COLON", "Space before type reference colon ':'",
                              CodeStyleSettingsCustomizable.SPACES_OTHER, CodeStyleSettingsCustomizable.OptionAnchor.NONE);
    consumer.showCustomOption(HaxeCodeStyleSettings.class, "SPACE_AFTER_TYPE_REFERENCE_COLON", "Space after type reference colon ':'",
                              CodeStyleSettingsCustomizable.SPACES_OTHER, CodeStyleSettingsCustomizable.OptionAnchor.NONE);
  }
  else if (settingsType == SettingsType.BLANK_LINES_SETTINGS) {
    consumer.showStandardOptions("KEEP_BLANK_LINES_IN_CODE");
  }
  else if (settingsType == SettingsType.WRAPPING_AND_BRACES_SETTINGS) {
    consumer.showStandardOptions("KEEP_LINE_BREAKS",
                                 "KEEP_FIRST_COLUMN_COMMENT",
                                 "BRACE_STYLE",
                                 "METHOD_BRACE_STYLE",
                                 "CALL_PARAMETERS_WRAP",
                                 "CALL_PARAMETERS_LPAREN_ON_NEXT_LINE",
                                 "CALL_PARAMETERS_RPAREN_ON_NEXT_LINE",
                                 "METHOD_PARAMETERS_WRAP",
                                 "METHOD_PARAMETERS_LPAREN_ON_NEXT_LINE",
                                 "METHOD_PARAMETERS_RPAREN_ON_NEXT_LINE",
                                 "ELSE_ON_NEW_LINE",
                                 "WHILE_ON_NEW_LINE",
                                 "CATCH_ON_NEW_LINE",
                                 "ALIGN_MULTILINE_PARAMETERS",
                                 "ALIGN_MULTILINE_PARAMETERS_IN_CALLS",
                                 "ALIGN_MULTILINE_BINARY_OPERATION",
                                 "BINARY_OPERATION_WRAP",
                                 "BINARY_OPERATION_SIGN_ON_NEXT_LINE",
                                 "TERNARY_OPERATION_WRAP",
                                 "TERNARY_OPERATION_SIGNS_ON_NEXT_LINE",
                                 "PARENTHESES_EXPRESSION_LPAREN_WRAP",
                                 "PARENTHESES_EXPRESSION_RPAREN_WRAP",
                                 "ALIGN_MULTILINE_TERNARY_OPERATION",
                                 "SPECIAL_ELSE_IF_TREATMENT");
  }
}
 
Example 6
Source File: XQueryLanguageCodeStyleSettingsProvider.java    From intellij-xquery with Apache License 2.0 4 votes vote down vote up
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
    if (settingsType == SettingsType.SPACING_SETTINGS) {
        consumer.showStandardOptions(
                "SPACE_AROUND_ASSIGNMENT_OPERATORS",
                "SPACE_AROUND_EQUALITY_OPERATORS",
                "SPACE_AROUND_RELATIONAL_OPERATORS",
                "SPACE_AROUND_ADDITIVE_OPERATORS",
                "SPACE_AROUND_MULTIPLICATIVE_OPERATORS",
                "SPACE_AROUND_UNARY_OPERATOR",
                "SPACE_AFTER_COMMA",
                "SPACE_BEFORE_COMMA",
                "SPACE_BEFORE_IF_PARENTHESES",
                "SPACE_BEFORE_SWITCH_PARENTHESES"
        );

        consumer.renameStandardOption("SPACE_AROUND_ASSIGNMENT_OPERATORS", "Assignment operator (:=)");
        consumer.renameStandardOption("SPACE_AROUND_EQUALITY_OPERATORS", "Equality operators (=, !=)");
        consumer.renameStandardOption("SPACE_AROUND_RELATIONAL_OPERATORS", "Relational operators (<, <=, >, >=)");
        consumer.renameStandardOption("SPACE_AROUND_ADDITIVE_OPERATORS", "Additive operators (+, -)");
        consumer.renameStandardOption("SPACE_AROUND_MULTIPLICATIVE_OPERATORS", "Multiplicative operator (*)");
        consumer.renameStandardOption("SPACE_AROUND_UNARY_OPERATOR", "Unary operators (+, -)");

        consumer.showCustomOption(XQueryCodeStyleSettings.class, "SPACE_AROUND_AXIS_OPERATOR",
                "Axis operator (::)", CodeStyleSettingsCustomizable.SPACES_AROUND_OPERATORS);

        consumer.showCustomOption(XQueryCodeStyleSettings.class, "SPACE_AROUND_ASSIGNMENT_IN_PROLOG",
                "Around '=' in declarations", CodeStyleSettingsCustomizable.SPACES_OTHER);
        consumer.showCustomOption(XQueryCodeStyleSettings.class, "SPACE_AROUND_ASSIGNMENT_IN_XML_ATTRIBUTE",
                "Around '=' inside XML attributes", CodeStyleSettingsCustomizable.SPACES_OTHER);

        consumer.showCustomOption(XQueryCodeStyleSettings.class, "SPACE_BEFORE_TYPESWITCH_PARENTHESES",
                "'typeswitch' parentheses", CodeStyleSettingsCustomizable.SPACES_BEFORE_PARENTHESES);
        consumer.showCustomOption(XQueryCodeStyleSettings.class, "SPACE_BEFORE_TYPE_TEST_PARENTHESES",
                "SequenceType and NodeTest parentheses", CodeStyleSettingsCustomizable.SPACES_BEFORE_PARENTHESES);
        consumer.showCustomOption(XQueryCodeStyleSettings.class, "SPACE_BEFORE_FUNCTION_DECLARATION_PARENTHESES",
                "Function declaration parentheses", CodeStyleSettingsCustomizable.SPACES_BEFORE_PARENTHESES);
        consumer.showCustomOption(XQueryCodeStyleSettings.class, "SPACE_BEFORE_FUNCTION_CALL_PARENTHESES",
                "Function call parentheses", CodeStyleSettingsCustomizable.SPACES_BEFORE_PARENTHESES);
    } else if (settingsType == SettingsType.WRAPPING_AND_BRACES_SETTINGS) {
        consumer.showStandardOptions("KEEP_LINE_BREAKS");
    } else if (settingsType == SettingsType.BLANK_LINES_SETTINGS) {
        consumer.showStandardOptions("KEEP_BLANK_LINES_IN_CODE");
    }
}