Java 类com.intellij.psi.codeStyle.DisplayPriority 实例源码

项目:tools-idea    文件:GeneralCodeStylePanel.java   
public GeneralCodeStylePanel(CodeStyleSettings settings) {
  super(settings);

  final List<FileTypeIndentOptionsProvider> indentOptionsProviders =
    Arrays.asList(Extensions.getExtensions(FileTypeIndentOptionsProvider.EP_NAME));
  Collections.sort(indentOptionsProviders, new Comparator<FileTypeIndentOptionsProvider>() {
    @Override
    public int compare(FileTypeIndentOptionsProvider p1, FileTypeIndentOptionsProvider p2) {
      Language lang1 = getLanguage(p1.getFileType());
      if (lang1 == null) return -1;
      Language lang2 = getLanguage(p2.getFileType());
      if (lang2 == null) return 1;
      DisplayPriority priority1 = LanguageCodeStyleSettingsProvider.getDisplayPriority(lang1);
      DisplayPriority priority2 = LanguageCodeStyleSettingsProvider.getDisplayPriority(lang2);
      if (priority1.equals(priority2)) {
        return lang1.getDisplayName().compareTo(lang2.getDisplayName());
      }
      return priority1.compareTo(priority2);
    }
  });

  myLineSeparatorCombo.addItem(SYSTEM_DEPENDANT_STRING);
  myLineSeparatorCombo.addItem(UNIX_STRING);
  myLineSeparatorCombo.addItem(WINDOWS_STRING);
  myLineSeparatorCombo.addItem(MACINTOSH_STRING);
  addPanelToWatch(myPanel);

  myRightMarginSpinner.setModel(new SpinnerNumberModel(settings.RIGHT_MARGIN, 1, 1000000, 1));

  myIndentOptionsEditor = new SmartIndentOptionsEditor();
  myDefaultIndentOptionsPanel.add(myIndentOptionsEditor.createPanel(), BorderLayout.CENTER);
}
项目:intellij-neos    文件:FusionColorSettingsPage.java   
@Override
public DisplayPriority getPriority() {
    return DisplayPriority.LANGUAGE_SETTINGS;
}
项目:intellij-ce-playground    文件:GenerationSettingsProvider.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.CODE_SETTINGS;
}
项目:intellij-ce-playground    文件:JavaColorSettingsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.KEY_LANGUAGE_SETTINGS;
}
项目:intellij-ce-playground    文件:DebuggerColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:intellij-ce-playground    文件:GeneralCodeStyleSettingsProvider.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:intellij-ce-playground    文件:OtherFileTypesCodeStyleOptionsProvider.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.OTHER_SETTINGS;
}
项目:intellij-ce-playground    文件:ColorAndFontOptions.java   
@NotNull
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:intellij-ce-playground    文件:DefaultLanguageColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.GENERAL_SETTINGS;
}
项目:intellij-ce-playground    文件:CustomColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:intellij-ce-playground    文件:GeneralColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.GENERAL_SETTINGS;
}
项目:intellij-ce-playground    文件:ANSIColoredConsoleColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:intellij-ce-playground    文件:JsonColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.LANGUAGE_SETTINGS;
}
项目:intellij-ce-playground    文件:PyLanguageCodeStyleSettingsProvider.java   
@Override
public DisplayPriority getDisplayPriority() {
  return PlatformUtils.isPyCharm() ? DisplayPriority.KEY_LANGUAGE_SETTINGS : DisplayPriority.LANGUAGE_SETTINGS;
}
项目:intellij-ce-playground    文件:PyCodeStyleSettingsProvider.java   
@Override
public DisplayPriority getPriority() {
  return PlatformUtils.isPyCharm() ? DisplayPriority.KEY_LANGUAGE_SETTINGS : DisplayPriority.LANGUAGE_SETTINGS;
}
项目:intellij-ce-playground    文件:PythonColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return PlatformUtils.isPyCharm() ? DisplayPriority.KEY_LANGUAGE_SETTINGS : DisplayPriority.LANGUAGE_SETTINGS;
}
项目:intellij    文件:BuildColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.LANGUAGE_SETTINGS;
}
项目:material-theme-jetbrains    文件:MTFileColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:tools-idea    文件:GenerationSettingsProvider.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.CODE_SETTINGS;
}
项目:tools-idea    文件:JavaCodeStyleSettingsProvider.java   
@Override
public DisplayPriority getPriority() {
  return PlatformUtils.isIdea() ? DisplayPriority.KEY_LANGUAGE_SETTINGS : DisplayPriority.LANGUAGE_SETTINGS;
}
项目:tools-idea    文件:JavaColorSettingsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.KEY_LANGUAGE_SETTINGS;
}
项目:tools-idea    文件:JavaLanguageCodeStyleSettingsProvider.java   
@Override
public DisplayPriority getDisplayPriority() {
  if (PlatformUtils.isIdea()) return DisplayPriority.KEY_LANGUAGE_SETTINGS;
  return DisplayPriority.LANGUAGE_SETTINGS;
}
项目:tools-idea    文件:DebuggerColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:tools-idea    文件:GeneralCodeStyleSettingsProvider.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:tools-idea    文件:OtherTabsAndIndentsProvider.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.OTHER_SETTINGS;
}
项目:tools-idea    文件:CommonCodeStyleSettingsProvider.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.OTHER_SETTINGS;
}
项目:tools-idea    文件:WrappingAndBracesSettingsProvider.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:tools-idea    文件:SpacesSettingsProvider.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:tools-idea    文件:BlankLinesSettingsProvider.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:tools-idea    文件:ColorAndFontOptions.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:tools-idea    文件:DefaultLanguageColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.GENERAL_SETTINGS;
}
项目:tools-idea    文件:CustomColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}
项目:tools-idea    文件:GeneralColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.GENERAL_SETTINGS;
}
项目:tools-idea    文件:ANSIColoredConsoleColorsPage.java   
@Override
public DisplayPriority getPriority() {
  return DisplayPriority.COMMON_SETTINGS;
}