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


Java CustomCodeStyleSettings类代码示例

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


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

示例1: Option

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
public Option(@Nullable Class<? extends CustomCodeStyleSettings> clazz,
              @NotNull String fieldName,
              @NotNull String title,
              @Nullable String groupName,
              @Nullable OptionAnchor anchor,
              @Nullable String anchorFiledName) {
  super(fieldName, anchor, anchorFiledName);
  this.clazz = clazz;
  this.title = title;
  this.groupName = groupName;

  try {
    Class styleSettingsClass = clazz == null ? CommonCodeStyleSettings.class : clazz;
    this.field = styleSettingsClass.getField(fieldName);
  }
  catch (NoSuchFieldException e) {
    throw new RuntimeException(e);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:OptionTableWithPreviewPanel.java

示例2: IntOption

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
public IntOption(Class<? extends CustomCodeStyleSettings> clazz,
                 @NotNull String fieldName,
                 @NotNull String title,
                 @Nullable String groupName, 
                 @Nullable OptionAnchor anchor, 
                 @Nullable String anchorFiledName,
                 int minValue,
                 int maxValue,
                 int defaultValue,
                 @Nullable String defaultValueText) {
  super(clazz, fieldName, title, groupName, anchor, anchorFiledName);
  myMinValue = minValue;
  myMaxValue = maxValue;
  myDefaultValue = defaultValue;
  myDefaultValueText = defaultValueText;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:OptionTableWithPreviewPanel.java

示例3: showCustomOption

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
@Override
public void showCustomOption(Class<? extends CustomCodeStyleSettings> settingsClass,
                             String fieldName,
                             String title,
                             String groupName,
                             @Nullable OptionAnchor anchor,
                             @Nullable String anchorFieldName,
                             Object... options) {
  if (myIsFirstUpdate) {
    myCustomOptions.putValue(groupName, (Trinity)Trinity.create(settingsClass, fieldName, title));
  }

  for (IntOption option : myOptions) {
    if (option.myTarget.getName().equals(fieldName)) {
      option.myTextField.setEnabled(true);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:CodeStyleBlankLinesPanel.java

示例4: Option

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
public Option(Class<? extends CustomCodeStyleSettings> clazz,
              @NotNull String fieldName,
              @NotNull String title,
              @Nullable String groupName,
              @Nullable OptionAnchor anchor,
              @Nullable String anchorFiledName) {
  super(fieldName, anchor, anchorFiledName);
  this.clazz = clazz;
  this.title = title;
  this.groupName = groupName;

  try {
    Class styleSettingsClass = clazz == null ? CodeStyleSettings.class : clazz;
    this.field = styleSettingsClass.getField(fieldName);
  }
  catch (NoSuchFieldException e) {
    throw new RuntimeException(e);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:20,代码来源:OptionTableWithPreviewPanel.java

示例5: Option

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
public Option(@Nullable Class<? extends CustomCodeStyleSettings> clazz,
              @Nonnull String fieldName,
              @Nonnull String title,
              @Nullable String groupName,
              @Nullable OptionAnchor anchor,
              @Nullable String anchorFiledName) {
  super(fieldName, anchor, anchorFiledName);
  this.clazz = clazz;
  this.title = title;
  this.groupName = groupName;

  try {
    Class styleSettingsClass = clazz == null ? CommonCodeStyleSettings.class : clazz;
    this.field = styleSettingsClass.getField(fieldName);
  }
  catch (NoSuchFieldException e) {
    throw new RuntimeException(e);
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:20,代码来源:OptionTableWithPreviewPanel.java

示例6: IntOption

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
public IntOption(Class<? extends CustomCodeStyleSettings> clazz,
                 @Nonnull String fieldName,
                 @Nonnull String title,
                 @Nullable String groupName,
                 @Nullable OptionAnchor anchor,
                 @Nullable String anchorFiledName,
                 int minValue,
                 int maxValue,
                 int defaultValue,
                 @Nullable String defaultValueText) {
  super(clazz, fieldName, title, groupName, anchor, anchorFiledName);
  myMinValue = minValue;
  myMaxValue = maxValue;
  myDefaultValue = defaultValue;
  myDefaultValueText = defaultValueText;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:17,代码来源:OptionTableWithPreviewPanel.java

示例7: showCustomOption

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
@Override
public void showCustomOption(Class<? extends CustomCodeStyleSettings> settingsClass,
                             String fieldName,
                             String title,
                             String groupName, Object... options) {
  showCustomOption(settingsClass, fieldName, title, groupName, null, null, options);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:OptionTreeWithPreviewPanel.java

示例8: CustomBooleanOptionInfo

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
private CustomBooleanOptionInfo(@NotNull Class<? extends CustomCodeStyleSettings> settingClass,
                                @NotNull String fieldName,
                                @NotNull String title,
                                String groupName,
                                OptionAnchor anchor,
                                String anchorFieldName) {
  this.settingClass = settingClass;
  this.fieldName = fieldName;
  this.title = title;
  this.groupName = groupName;
  this.anchor = anchor;
  this.anchorFieldName = anchorFieldName;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:OptionTreeWithPreviewPanel.java

示例9: setValue

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
@Override
public void setValue(CodeStyleSettings settings, Boolean aBoolean) {
  final CustomCodeStyleSettings customSettings = settings.getCustomSettings(mySettingsClass);
  try {
    field.set(customSettings, aBoolean);
  }
  catch (IllegalAccessException e) {
    LOG.error(e);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:OptionTreeWithPreviewPanel.java

示例10: BooleanOption

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
private BooleanOption(Class<? extends CustomCodeStyleSettings> clazz,
                      @NotNull String fieldName,
                      @NotNull String title,
                      @Nullable String groupName,
                      @Nullable OptionAnchor anchor,
                      @Nullable String anchorFiledName) {
  super(clazz, fieldName, title, groupName, anchor, anchorFiledName);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:OptionTableWithPreviewPanel.java

示例11: SelectionOption

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
public SelectionOption(Class<? extends CustomCodeStyleSettings> clazz,
                       @NotNull String fieldName,
                       @NotNull String title,
                       @Nullable String groupName,
                       @Nullable OptionAnchor anchor,
                       @Nullable String anchorFiledName,
                       @NotNull String[] options,
                       @NotNull int[] values) {
  super(clazz, fieldName, title, groupName, anchor, anchorFiledName);
  this.options = options;
  this.values = values;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:OptionTableWithPreviewPanel.java

示例12: CustomBooleanOptionInfo

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
private CustomBooleanOptionInfo(@Nonnull Class<? extends CustomCodeStyleSettings> settingClass,
                                @Nonnull String fieldName,
                                @Nonnull String title,
                                String groupName,
                                OptionAnchor anchor,
                                String anchorFieldName) {
  this.settingClass = settingClass;
  this.fieldName = fieldName;
  this.title = title;
  this.groupName = groupName;
  this.anchor = anchor;
  this.anchorFieldName = anchorFieldName;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:14,代码来源:OptionTreeWithPreviewPanel.java

示例13: BooleanOption

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
private BooleanOption(Class<? extends CustomCodeStyleSettings> clazz,
                      @Nonnull String fieldName,
                      @Nonnull String title,
                      @Nullable String groupName,
                      @Nullable OptionAnchor anchor,
                      @Nullable String anchorFiledName) {
  super(clazz, fieldName, title, groupName, anchor, anchorFiledName);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:9,代码来源:OptionTableWithPreviewPanel.java

示例14: SelectionOption

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
public SelectionOption(Class<? extends CustomCodeStyleSettings> clazz,
                       @Nonnull String fieldName,
                       @Nonnull String title,
                       @Nullable String groupName,
                       @Nullable OptionAnchor anchor,
                       @Nullable String anchorFiledName,
                       @Nonnull String[] options,
                       @Nonnull int[] values) {
  super(clazz, fieldName, title, groupName, anchor, anchorFiledName);
  this.options = options;
  this.values = values;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:13,代码来源:OptionTableWithPreviewPanel.java

示例15: createCustomSettings

import com.intellij.psi.codeStyle.CustomCodeStyleSettings; //导入依赖的package包/类
@Override
public CustomCodeStyleSettings createCustomSettings(final CodeStyleSettings settings) {
    return new ImpexCodeStyleSettings(settings);
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:5,代码来源:ImpexCodeStyleSettingsProvider.java


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