当前位置: 首页>>代码示例>>Java>>正文


Java CodeStyleSettingsCustomizable.showAllStandardOptions方法代码示例

本文整理汇总了Java中com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable.showAllStandardOptions方法的典型用法代码示例。如果您正苦于以下问题:Java CodeStyleSettingsCustomizable.showAllStandardOptions方法的具体用法?Java CodeStyleSettingsCustomizable.showAllStandardOptions怎么用?Java CodeStyleSettingsCustomizable.showAllStandardOptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable的用法示例。


在下文中一共展示了CodeStyleSettingsCustomizable.showAllStandardOptions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: customizeSettings

import com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable; //导入方法依赖的package包/类
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
    if (settingsType == SettingsType.INDENT_SETTINGS) {
        consumer.showAllStandardOptions();
    } else if (settingsType == SettingsType.SPACING_SETTINGS) {
        consumer.showStandardOptions("SPACE_AROUND_ASSIGNMENT_OPERATORS",
                "SPACE_AROUND_EQUALITY_OPERATORS",
                "SPACE_BEFORE_CLASS_LBRACE",
                "SPACE_BEFORE_METHOD_LBRACE",
                "SPACE_BEFORE_METHOD_LBRACE",
                "SPACE_WITHIN_BRACKETS",
                "SPACE_AFTER_SEMICOLON",
                "SPACE_BEFORE_SEMICOLON",
                "SPACE_AFTER_COLON");
        consumer.renameStandardOption("SPACE_AROUND_ASSIGNMENT_OPERATORS", "Attribute operator");
        consumer.renameStandardOption("SPACE_BEFORE_CLASS_LBRACE", "Space before {");
        consumer.renameStandardOption("SPACE_BEFORE_METHOD_LBRACE", "Space before [");
    } else if (settingsType == SettingsType.BLANK_LINES_SETTINGS) {
        consumer.showStandardOptions("KEEP_BLANK_LINES_IN_CODE");
    }
}
 
开发者ID:bzixilu,项目名称:dotplugin,代码行数:22,代码来源:DotLanguageCodeStyleSettingsProvider.java

示例2: customizeSettings

import com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable; //导入方法依赖的package包/类
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
    if (settingsType == SettingsType.INDENT_SETTINGS) {
        //consumer.showStandardOptions("SPACE_AROUND_ASSIGNMENT_OPERATORS");
        consumer.showAllStandardOptions();
    }
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:8,代码来源:RamlLanguageCodeStyleSettingsProvider.java

示例3: customizeSettings

import com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable; //导入方法依赖的package包/类
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
    if (settingsType == SettingsType.INDENT_SETTINGS) {
        consumer.showAllStandardOptions();
    }
}
 
开发者ID:amzn,项目名称:ion-intellij-plugin,代码行数:7,代码来源:IonLanguageCodeStyleSettingsProvider.java

示例4: customizeSettings

import com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable; //导入方法依赖的package包/类
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
  consumer.showAllStandardOptions();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:5,代码来源:JavaLanguageCodeStyleSettingsProvider.java


注:本文中的com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable.showAllStandardOptions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。