當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。