@Override public CommonCodeStyleSettings getDefaultCommonSettings() { CommonCodeStyleSettings defaultSettings = new CommonCodeStyleSettings(getLanguage()); CommonCodeStyleSettings.IndentOptions indentOptions = defaultSettings.initIndentOptions(); indentOptions.INDENT_SIZE = 8; indentOptions.CONTINUATION_INDENT_SIZE = 8; indentOptions.TAB_SIZE = 8; indentOptions.USE_TAB_CHARACTER = true; defaultSettings.BLOCK_COMMENT_AT_FIRST_COLUMN = false; defaultSettings.LINE_COMMENT_AT_FIRST_COLUMN = false; return defaultSettings; } }
@Override public CommonCodeStyleSettings getDefaultCommonSettings() { CommonCodeStyleSettings defaultSettings = new CommonCodeStyleSettings(getLanguage()); CommonCodeStyleSettings.IndentOptions indentOptions = defaultSettings.initIndentOptions(); indentOptions.INDENT_SIZE = 4; indentOptions.CONTINUATION_INDENT_SIZE = 4; indentOptions.TAB_SIZE = 4; indentOptions.USE_TAB_CHARACTER = false; defaultSettings.BLOCK_COMMENT_AT_FIRST_COLUMN = false; defaultSettings.LINE_COMMENT_AT_FIRST_COLUMN = false; return defaultSettings; } }
@Override public CommonCodeStyleSettings getDefaultCommonSettings() { CommonCodeStyleSettings defaultCommonSettings = new CommonCodeStyleSettings(getLanguage()); CommonCodeStyleSettings.IndentOptions indentOptions = defaultCommonSettings.initIndentOptions(); indentOptions.INDENT_SIZE = 2; indentOptions.CONTINUATION_INDENT_SIZE = 2; indentOptions.TAB_SIZE = 2; return defaultCommonSettings; }
@Nullable @Override public CommonCodeStyleSettings getDefaultCommonSettings() { CommonCodeStyleSettings settings = new CommonCodeStyleSettings(ProtoLanguage.INSTANCE); settings.initIndentOptions(); // TODO: we should define our own settings settings.SPACE_AROUND_ASSIGNMENT_OPERATORS = true; settings.SPACE_BEFORE_SEMICOLON = false; settings.BRACE_STYLE = END_OF_LINE; settings.KEEP_BLANK_LINES_IN_CODE = 2; settings.KEEP_LINE_BREAKS = false; return settings; }
@Nullable @Override public CommonCodeStyleSettings getDefaultCommonSettings() { CommonCodeStyleSettings settings = new CommonCodeStyleSettings(getLanguage()); CommonCodeStyleSettings.IndentOptions indentOptions = settings.initIndentOptions(); indentOptions.INDENT_SIZE = 2; indentOptions.CONTINUATION_INDENT_SIZE = 2; indentOptions.TAB_SIZE = 2; indentOptions.USE_TAB_CHARACTER = false; return settings; }
@Override public CommonCodeStyleSettings getDefaultCommonSettings() { CommonCodeStyleSettings defaultSettings = new CommonCodeStyleSettings(getLanguage()); IndentOptions indentOptions = defaultSettings.initIndentOptions(); indentOptions.INDENT_SIZE = 2; indentOptions.CONTINUATION_INDENT_SIZE = 4; indentOptions.TAB_SIZE = 2; indentOptions.USE_TAB_CHARACTER = false; return defaultSettings; }
@Override public CommonCodeStyleSettings getDefaultCommonSettings() { final CommonCodeStyleSettings defaultSettings = new CommonCodeStyleSettings(getLanguage()); final CommonCodeStyleSettings.IndentOptions indentOptions = defaultSettings.initIndentOptions(); indentOptions.INDENT_SIZE = 4; indentOptions.CONTINUATION_INDENT_SIZE = 4; indentOptions.TAB_SIZE = 4; indentOptions.USE_TAB_CHARACTER = false; defaultSettings.BLOCK_COMMENT_AT_FIRST_COLUMN = false; defaultSettings.LINE_COMMENT_AT_FIRST_COLUMN = false; return defaultSettings; } }
@Override public CommonCodeStyleSettings getDefaultCommonSettings() { CommonCodeStyleSettings commonSettings = new CommonCodeStyleSettings(getLanguage()); commonSettings.initIndentOptions(); commonSettings.getIndentOptions().TAB_SIZE = 1; commonSettings.getIndentOptions().INDENT_SIZE = 1; commonSettings.getIndentOptions().USE_TAB_CHARACTER = true; commonSettings.getIndentOptions().SMART_TABS = false; commonSettings.getIndentOptions().KEEP_INDENTS_ON_EMPTY_LINES = true; commonSettings.WRAP_ON_TYPING = CommonCodeStyleSettings.WrapOnTyping.NO_WRAP.intValue; commonSettings.WRAP_LONG_LINES = false; commonSettings.RIGHT_MARGIN = Integer.MAX_VALUE; return commonSettings; } }