当前位置: 首页>>代码示例>>Java>>正文


Java EditorColorsManagerImpl类代码示例

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


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

示例1: fillActions

import com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl; //导入依赖的package包/类
protected void fillActions(Project project, @NotNull DefaultActionGroup group, @NotNull DataContext dataContext) {
  final EditorColorsScheme[] schemes = EditorColorsManager.getInstance().getAllSchemes();
  EditorColorsScheme current = EditorColorsManager.getInstance().getGlobalScheme();
  for (final EditorColorsScheme scheme : schemes) {
    addScheme(group, current, scheme, false);
  }


  Collection<SharedScheme<EditorColorsSchemeImpl>> sharedSchemes = ((EditorColorsManagerImpl)EditorColorsManager.getInstance()).getSchemesManager().loadSharedSchemes();

  if (!sharedSchemes.isEmpty()) {
    group.add(Separator.getInstance());

    for (SharedScheme<EditorColorsSchemeImpl> sharedScheme : sharedSchemes) {
      addScheme(group, current, sharedScheme.getScheme(), true);
    }
  }

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

示例2: apply

import com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl; //导入依赖的package包/类
public static void apply() {
  final EditorColorsScheme defaultScheme = getCurrentSchemeForCurrentUITheme();
  final EditorColorsScheme globalScheme = EditorColorsManagerImpl.getInstance().getGlobalScheme();
  final FileStatus[] allFileStatuses = FileStatusFactory.getInstance().getAllFileStatuses();

  for (final FileStatus allFileStatus : allFileStatuses) {
    defaultScheme.setColor(allFileStatus.getColorKey(), globalScheme.getColor(allFileStatus.getColorKey()));
  }
  ((AbstractColorsScheme) defaultScheme).setSaveNeeded(true);

  for (final Project project : ProjectManager.getInstance().getOpenProjects()) {
    FileStatusManager.getInstance(project).fileStatusesChanged();
  }
}
 
开发者ID:ChrisRM,项目名称:material-theme-jetbrains,代码行数:15,代码来源:MTFileColors.java

示例3: apply

import com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl; //导入依赖的package包/类
public static void apply() {
  final EditorColorsScheme defaultScheme = getCurrentSchemeForCurrentUITheme();
  final EditorColorsScheme globalScheme = EditorColorsManagerImpl.getInstance().getGlobalScheme();
  for (final ColorDescriptor descriptor : DESCRIPTORS) {
    defaultScheme.setColor(descriptor.getKey(), globalScheme.getColor(descriptor.getKey()));
  }
  ((AbstractColorsScheme) defaultScheme).setSaveNeeded(true);


  for (final Project project : ProjectManager.getInstance().getOpenProjects()) {
    FileStatusManager.getInstance(project).fileStatusesChanged();
  }
}
 
开发者ID:ChrisRM,项目名称:material-theme-jetbrains,代码行数:14,代码来源:MTFileColorsPage.java

示例4: tearDown

import com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl; //导入依赖的package包/类
@Override
protected void tearDown() throws Exception {
  EditorColorsManager.getInstance().setGlobalScheme(mySavedScheme);
  ((EditorColorsManagerImpl)EditorColorsManager.getInstance()).getSchemeManager().removeScheme(myTestScheme);
  super.tearDown();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:EditorColorsSchemeDelegateTest.java

示例5: isEnabled

import com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl; //导入依赖的package包/类
protected boolean isEnabled() {
  return EditorColorsManager.getInstance().getAllSchemes().length > 1 || ((EditorColorsManagerImpl)EditorColorsManager.getInstance()).getSchemesManager().isImportAvailable();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:QuickChangeColorSchemeAction.java

示例6: isSharedScheme

import com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl; //导入依赖的package包/类
static boolean isSharedScheme(EditorColorsScheme selected) {
    return ((EditorColorsManagerImpl) EditorColorsManager.getInstance()).getSchemesManager().isShared(selected);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:ColorSettingsUtil.java


注:本文中的com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。