Java 类com.intellij.psi.codeStyle.arrangement.ArrangementSettings 实例源码

项目:tools-idea    文件:XmlRearranger.java   
@Nullable
@Override
public Pair<XmlElementArrangementEntry, List<XmlElementArrangementEntry>> parseWithNew(@NotNull PsiElement root,
                                                                                       @Nullable Document document,
                                                                                       @NotNull Collection<TextRange> ranges,
                                                                                       @NotNull PsiElement element,
                                                                                       @Nullable ArrangementSettings settings)
{
  final XmlArrangementParseInfo newEntryInfo = new XmlArrangementParseInfo();
  element.accept(new XmlArrangementVisitor(newEntryInfo, Collections.singleton(element.getTextRange())));

  if (newEntryInfo.getEntries().size() != 1) {
    return null;
  }
  final XmlElementArrangementEntry entry = newEntryInfo.getEntries().get(0);
  final XmlArrangementParseInfo existingEntriesInfo = new XmlArrangementParseInfo();
  root.accept(new XmlArrangementVisitor(existingEntriesInfo, ranges));
  return Pair.create(entry, existingEntriesInfo.getEntries());
}
项目:consulo-xml    文件:XmlRearranger.java   
@Nullable
@Override
public Pair<XmlElementArrangementEntry, List<XmlElementArrangementEntry>> parseWithNew(
        @NotNull PsiElement root,
        @Nullable Document document,
        @NotNull Collection<TextRange> ranges,
        @NotNull PsiElement element,
        @NotNull ArrangementSettings settings)
{
    final XmlArrangementParseInfo newEntryInfo = new XmlArrangementParseInfo();
    element.accept(new XmlArrangementVisitor(newEntryInfo, Collections.singleton(element.getTextRange())));

    if(newEntryInfo.getEntries().size() != 1)
    {
        return null;
    }
    final XmlElementArrangementEntry entry = newEntryInfo.getEntries().get(0);
    final XmlArrangementParseInfo existingEntriesInfo = new XmlArrangementParseInfo();
    root.accept(new XmlArrangementVisitor(existingEntriesInfo, ranges));
    return Pair.create(entry, existingEntriesInfo.getEntries());
}
项目:tools-idea    文件:XmlRearranger.java   
@NotNull
@Override
public List<XmlElementArrangementEntry> parse(@NotNull PsiElement root,
                                              @Nullable Document document,
                                              @NotNull Collection<TextRange> ranges,
                                              @Nullable ArrangementSettings settings) {
  final XmlArrangementParseInfo parseInfo = new XmlArrangementParseInfo();
  root.accept(new XmlArrangementVisitor(parseInfo, ranges));
  return parseInfo.getEntries();
}
项目:intellij-haxe    文件:HaxeRearrangerModel.java   
@Nullable
@Override
public Pair parseWithNew(@NotNull PsiElement element,
                         @Nullable Document document,
                         @NotNull Collection collection,
                         @NotNull PsiElement element2,
                         @Nullable ArrangementSettings settings) {
  return null;
}
项目:intellij-haxe    文件:HaxeRearrangerModel.java   
@NotNull
@Override
public List parse(@NotNull PsiElement element,
                  @Nullable Document document,
                  @NotNull Collection collection,
                  @Nullable ArrangementSettings settings) {
  return null;
}
项目:consulo-xml    文件:XmlRearranger.java   
@NotNull
@Override
public List<XmlElementArrangementEntry> parse(
        @NotNull PsiElement root, @Nullable Document document, @NotNull Collection<TextRange> ranges, @NotNull ArrangementSettings settings)
{
    final XmlArrangementParseInfo parseInfo = new XmlArrangementParseInfo();
    root.accept(new XmlArrangementVisitor(parseInfo, ranges));
    return parseInfo.getEntries();
}
项目:intellij-ce-playground    文件:CommonCodeStyleSettings.java   
@Nullable
public ArrangementSettings getArrangementSettings() {
  return myArrangementSettings;
}
项目:intellij-ce-playground    文件:CommonCodeStyleSettings.java   
public void setArrangementSettings(@NotNull ArrangementSettings settings) {
  myArrangementSettings = settings;
}
项目:intellij-ce-playground    文件:StdArrangementSettings.java   
@NotNull
@Override
public ArrangementSettings clone() {
  return new StdArrangementSettings(cloneGroupings(), cloneSectionRules());
}
项目:tools-idea    文件:CommonCodeStyleSettings.java   
@Nullable
public ArrangementSettings getArrangementSettings() {
  return myArrangementSettings;
}
项目:tools-idea    文件:CommonCodeStyleSettings.java   
public void setArrangementSettings(@NotNull ArrangementSettings settings) {
  myArrangementSettings = settings;
}
项目:consulo    文件:CommonCodeStyleSettings.java   
@Nullable
public ArrangementSettings getArrangementSettings() {
  return myArrangementSettings;
}
项目:consulo    文件:CommonCodeStyleSettings.java   
public void setArrangementSettings(@Nonnull ArrangementSettings settings) {
  myArrangementSettings = settings;
}
项目:consulo    文件:StdArrangementSettings.java   
@Nonnull
@Override
public ArrangementSettings clone() {
  return new StdArrangementSettings(cloneGroupings(), cloneSectionRules());
}