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


Java IColorProvider类代码示例

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


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

示例1: DecoratingColumLabelProvider

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
/**
 * Constructor.
 * 
 * @param labelProvider
 *            the {@link ILabelProvider} to decorate
 * @param labelDecorator
 *            the {@link ILabelDecorator} adding decoration
 */
public DecoratingColumLabelProvider(ILabelProvider labelProvider, ILabelDecorator labelDecorator) {
	this.labelProvider = labelProvider;
	if (labelProvider instanceof IFontProvider) {
		this.fontProvider = (IFontProvider)labelProvider;
	} else {
		this.fontProvider = null;
	}
	if (labelProvider instanceof IColorProvider) {
		this.colorProvider = (IColorProvider)labelProvider;
	} else {
		this.colorProvider = null;
	}

	this.labelDecorator = labelDecorator;
	if (labelDecorator instanceof CellLabelProvider) {
		this.cellLabelProvider = (CellLabelProvider)labelDecorator;
	} else {
		this.cellLabelProvider = null;
	}
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:29,代码来源:DecoratingColumLabelProvider.java

示例2: getForeground

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
public Color getForeground(Object element) {
	ILabelDecorator colorProvider = getLabelDecorator();
	if (colorProvider instanceof IColorProvider) {
		return ((IColorProvider) colorProvider).getForeground(element);
	}

	// Default
	return null;
}
 
开发者ID:aroog,项目名称:code,代码行数:10,代码来源:ArchitecturalDecoratingLabelProvider.java

示例3: getBackground

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
public Color getBackground(Object element) {
	ILabelDecorator colorProvider = getLabelDecorator();
	if (colorProvider instanceof IColorProvider) {
		return ((IColorProvider) colorProvider).getBackground(element);
	}

	// Default
	return null;
}
 
开发者ID:aroog,项目名称:code,代码行数:10,代码来源:ArchitecturalDecoratingLabelProvider.java

示例4: getBackground

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
private Color getBackground(Object element) {
	if (element instanceof ItemsListSeparator) {
		return null;
	}
	if (provider instanceof IColorProvider) {
		return ((IColorProvider) provider).getBackground(element);
	}
	return null;
}
 
开发者ID:tlaplus,项目名称:tlaplus,代码行数:10,代码来源:FilteredItemsSelectionDialog.java

示例5: getForeground

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
private Color getForeground(Object element) {
	if (element instanceof ItemsListSeparator) {
		return Display.getCurrent().getSystemColor(
				SWT.COLOR_WIDGET_NORMAL_SHADOW);
	}
	if (provider instanceof IColorProvider) {
		return ((IColorProvider) provider).getForeground(element);
	}
	return null;
}
 
开发者ID:tlaplus,项目名称:tlaplus,代码行数:11,代码来源:FilteredItemsSelectionDialog.java

示例6: getForeground

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
@Override
public Color getForeground(Object element) {
	if (wrappedLabelProvider instanceof IColorProvider) {
		return ((IColorProvider) wrappedLabelProvider).getForeground(element);
	}
	return null;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:8,代码来源:DelegatingLabelProviderWithTooltip.java

示例7: getBackground

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
@Override
public Color getBackground(Object element) {
	if (wrappedLabelProvider instanceof IColorProvider) {
		return ((IColorProvider) wrappedLabelProvider).getBackground(element);
	}
	return null;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:8,代码来源:DelegatingLabelProviderWithTooltip.java

示例8: getForeground

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
public Color getForeground(Object element)
{
	if (disabled || !invasiveThemesEnabled())
	{
		if (wrapped instanceof IColorProvider)
		{
			return ((IColorProvider) wrapped).getForeground(element);
		}
		return null;
	}
	return getThemeManager().getCurrentTheme().getForegroundColor();
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:13,代码来源:ThemedDelegatingLabelProvider.java

示例9: getColorProvider

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
@Override
public IColorProvider getColorProvider(){
	return fileLabelProvider;
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:5,代码来源:FileUiProvider.java

示例10: getColorProvider

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
@Override
public IColorProvider getColorProvider(){
	return labelProvider;
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:5,代码来源:LabResultUiProvider.java

示例11: getColorProvider

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
@Override
public IColorProvider getColorProvider(){
	// TODO Auto-generated method stub
	return null;
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:6,代码来源:EMediplanUiProvider.java

示例12: getColorProvider

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
@Override
public IColorProvider getColorProvider(){
	return null;
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:5,代码来源:DefaultOutboxElementLabelProvider.java

示例13: getColorProvider

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
/**
 * ColorProvider used by the outbox viewer.
 * 
 * @return IColorProvider or null
 */
public IColorProvider getColorProvider();
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:7,代码来源:IOutboxElementUiProvider.java

示例14: getColorProvider

import org.eclipse.jface.viewers.IColorProvider; //导入依赖的package包/类
/**
 * ColorProvider used by the inbox viewer.
 * 
 * @return IColorProvider or null
 */
public IColorProvider getColorProvider();
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:7,代码来源:IInboxElementUiProvider.java


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