本文整理汇总了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);
}
}
示例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;
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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