• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java CompositeArrangementSettingsToken类的典型用法和代码示例

java 1次浏览

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

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

示例1: ArrangementGroupingRulesControl

点赞 3

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
public ArrangementGroupingRulesControl(@NotNull ArrangementStandardSettingsManager settingsManager,
                                       @NotNull ArrangementColorsProvider colorsProvider)
{
  super(new DefaultTableModel(0, 1));
  mySettingsManager = settingsManager;
  setDefaultRenderer(Object.class, new MyRenderer());
  getColumnModel().getColumn(0).setCellEditor(new MyEditor());
  setShowColumns(false);
  setShowGrid(false);
  setBorder(IdeBorderFactory.createBorder());
  setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);

  List<CompositeArrangementSettingsToken> groupingTokens = settingsManager.getSupportedGroupingTokens();
  if (groupingTokens != null) {
    for (CompositeArrangementSettingsToken token : groupingTokens) {
      ArrangementGroupingComponent component = new ArrangementGroupingComponent(token, colorsProvider, settingsManager);
      myComponents.put(token.getToken(), component);
      getModel().addRow(new Object[]{component});
    }
  }
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:23,
代码来源:ArrangementGroupingRulesControl.java

示例2: ArrangementGroupingRulesControl

点赞 3

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
public ArrangementGroupingRulesControl(@Nonnull ArrangementStandardSettingsManager settingsManager,
                                       @Nonnull ArrangementColorsProvider colorsProvider)
{
  super(new DefaultTableModel(0, 1));
  mySettingsManager = settingsManager;
  setDefaultRenderer(Object.class, new MyRenderer());
  getColumnModel().getColumn(0).setCellEditor(new MyEditor());
  setShowColumns(false);
  setShowGrid(false);
  setBorder(IdeBorderFactory.createBorder());
  setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);

  List<CompositeArrangementSettingsToken> groupingTokens = settingsManager.getSupportedGroupingTokens();
  if (groupingTokens != null) {
    for (CompositeArrangementSettingsToken token : groupingTokens) {
      ArrangementGroupingComponent component = new ArrangementGroupingComponent(token, colorsProvider, settingsManager);
      myComponents.put(token.getToken(), component);
      getModel().addRow(new Object[]{component});
    }
  }
}
 

开发者ID:consulo,
项目名称:consulo,
代码行数:23,
代码来源:ArrangementGroupingRulesControl.java

示例3: ArrangementSectionRuleManager

点赞 2

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
private ArrangementSectionRuleManager(@NotNull Language language,
                                      @NotNull ArrangementStandardSettingsManager settingsManager,
                                      @NotNull ArrangementColorsProvider colorsProvider,
                                      @NotNull ArrangementSectionRulesControl control) {
  myCommenter = LanguageCommenters.INSTANCE.forLanguage(language);
  myControl = control;
  final List<CompositeArrangementSettingsToken> tokens = ContainerUtil.newArrayList();
  tokens.add(new CompositeArrangementSettingsToken(TYPE, ContainerUtil.newArrayList(START_SECTION, END_SECTION)));
  tokens.add(new CompositeArrangementSettingsToken(TEXT));
  myEditor = new ArrangementMatchingRuleEditor(settingsManager, tokens, colorsProvider, control);
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:12,
代码来源:ArrangementSectionRuleManager.java

示例4: ArrangementSectionRuleManager

点赞 2

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
private ArrangementSectionRuleManager(@Nonnull Language language,
                                      @Nonnull ArrangementStandardSettingsManager settingsManager,
                                      @Nonnull ArrangementColorsProvider colorsProvider,
                                      @Nonnull ArrangementMatchingRulesControl control) {
  myCommenter = LanguageCommenters.INSTANCE.forLanguage(language);
  myControl = control;
  final List<CompositeArrangementSettingsToken> tokens = ContainerUtil.newArrayList();
  tokens.add(new CompositeArrangementSettingsToken(TYPE, ContainerUtil.newArrayList(START_SECTION, END_SECTION)));
  tokens.add(new CompositeArrangementSettingsToken(TEXT));
  myEditor = new ArrangementMatchingRuleEditor(settingsManager, tokens, colorsProvider, control);
}
 

开发者ID:consulo,
项目名称:consulo,
代码行数:12,
代码来源:ArrangementSectionRuleManager.java

示例5: getSupportedMatchingTokens

点赞 2

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
@Nullable
@Override
public List<CompositeArrangementSettingsToken> getSupportedMatchingTokens()
{
	return ContainerUtilRt.newArrayList(new CompositeArrangementSettingsToken(TYPE, SUPPORTED_TYPES),
			new CompositeArrangementSettingsToken(StdArrangementTokens.Regexp.NAME), new CompositeArrangementSettingsToken(StdArrangementTokens
			.Regexp.XML_NAMESPACE), new CompositeArrangementSettingsToken(ORDER, KEEP, BY_NAME));
}
 

开发者ID:consulo,
项目名称:consulo-xml,
代码行数:9,
代码来源:XmlRearranger.java

示例6: getSupportedGroupingTokens

点赞 2

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
@Nullable
@Override
public List<CompositeArrangementSettingsToken> getSupportedGroupingTokens()
{
	return ContainerUtilRt.newArrayList(new CompositeArrangementSettingsToken(GETTERS_AND_SETTERS),
			new CompositeArrangementSettingsToken(OVERRIDDEN_METHODS, BY_NAME, KEEP), new CompositeArrangementSettingsToken(DEPENDENT_METHODS,
			BREADTH_FIRST, DEPTH_FIRST));
}
 

开发者ID:consulo,
项目名称:consulo-java
代码行数:9,
代码来源:JavaRearranger.java

示例7: getSupportedMatchingTokens

点赞 2

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
@Nullable
@Override
public List<CompositeArrangementSettingsToken> getSupportedMatchingTokens()
{
	return ContainerUtilRt.newArrayList(new CompositeArrangementSettingsToken(TYPE, SUPPORTED_TYPES),
			new CompositeArrangementSettingsToken(MODIFIER, SUPPORTED_MODIFIERS), new CompositeArrangementSettingsToken(StdArrangementTokens
			.Regexp.NAME), new CompositeArrangementSettingsToken(ORDER, KEEP, BY_NAME));
}
 

开发者ID:consulo,
项目名称:consulo-java
代码行数:9,
代码来源:JavaRearranger.java

示例8: buildWeights

点赞 2

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
private void buildWeights(@NotNull Collection<CompositeArrangementSettingsToken> compositeTokens) {
  for (CompositeArrangementSettingsToken token : compositeTokens) {
    myWeights.put(token.getToken(), myWeights.size());
    buildWeights(token.getChildren());
  }
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:7,
代码来源:ArrangementStandardSettingsManager.java

示例9: getSupportedGroupingTokens

点赞 2

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
/**
 * @see ArrangementStandardSettingsAware#getSupportedGroupingTokens()
 */
@Nullable
public List<CompositeArrangementSettingsToken> getSupportedGroupingTokens() {
  return myGroupingTokens;
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:8,
代码来源:ArrangementStandardSettingsManager.java

示例10: getSupportedMatchingTokens

点赞 2

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
/**
 * @see ArrangementStandardSettingsAware#getSupportedMatchingTokens()
 */
@Nullable
public List<CompositeArrangementSettingsToken> getSupportedMatchingTokens() {
  return myMatchingTokens;
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:8,
代码来源:ArrangementStandardSettingsManager.java

示例11: getSupportedGroupingTokens

点赞 2

import com.intellij.psi.codeStyle.arrangement.std.CompositeArrangementSettingsToken; //导入依赖的package包/类
@Nullable
@Override
public List<CompositeArrangementSettingsToken> getSupportedGroupingTokens()
{
	return null;
}
 

开发者ID:consulo,
项目名称:consulo-xml,
代码行数:7,
代码来源:XmlRearranger.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)