Java 类com.intellij.psi.impl.source.codeStyle.CodeStyleSchemesImpl 实例源码

项目:intellij-ce-playground    文件:CodeStyleSchemesModel.java   
public void apply() {
  CodeStyleSettingsManager projectSettingsManager = getProjectSettings();
  projectSettingsManager.USE_PER_PROJECT_SETTINGS = myUsePerProjectSettings;
  projectSettingsManager.PREFERRED_PROJECT_CODE_STYLE =
    myUsePerProjectSettings || myGlobalSelected == null ? null : myGlobalSelected.getName();
  projectSettingsManager.PER_PROJECT_SETTINGS = myProjectScheme.getCodeStyleSettings();

  ((CodeStyleSchemesImpl)CodeStyleSchemes.getInstance()).getSchemeManager().setSchemes(mySchemes, myGlobalSelected, null);

  // We want to avoid the situation when 'real code style' differs from the copy stored here (e.g. when 'real code style' changes
  // are 'committed' by pressing 'Apply' button). So, we reset the copies here assuming that this method is called on 'Apply'
  // button processing
  mySettingsToClone.clear();
}
项目:tools-idea    文件:CodeStyleSchemesModel.java   
static SchemesManager<CodeStyleScheme, CodeStyleSchemeImpl> getSchemesManager() {
  return ((CodeStyleSchemesImpl) CodeStyleSchemes.getInstance()).getSchemesManager();
}
项目:consulo    文件:CodeStyleSchemesModel.java   
static SchemesManager<CodeStyleScheme, CodeStyleSchemeImpl> getSchemesManager() {
  return ((CodeStyleSchemesImpl) CodeStyleSchemes.getInstance()).getSchemesManager();
}