本文整理汇总了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);
}
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
示例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();
}
示例6: isSharedScheme
import com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl; //导入依赖的package包/类
static boolean isSharedScheme(EditorColorsScheme selected) {
return ((EditorColorsManagerImpl) EditorColorsManager.getInstance()).getSchemesManager().isShared(selected);
}