本文整理匯總了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;
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例9: getColorProvider
import org.eclipse.jface.viewers.IColorProvider; //導入依賴的package包/類
@Override
public IColorProvider getColorProvider(){
return fileLabelProvider;
}
示例10: getColorProvider
import org.eclipse.jface.viewers.IColorProvider; //導入依賴的package包/類
@Override
public IColorProvider getColorProvider(){
return labelProvider;
}
示例11: getColorProvider
import org.eclipse.jface.viewers.IColorProvider; //導入依賴的package包/類
@Override
public IColorProvider getColorProvider(){
// TODO Auto-generated method stub
return null;
}
示例12: getColorProvider
import org.eclipse.jface.viewers.IColorProvider; //導入依賴的package包/類
@Override
public IColorProvider getColorProvider(){
return null;
}
示例13: getColorProvider
import org.eclipse.jface.viewers.IColorProvider; //導入依賴的package包/類
/**
* ColorProvider used by the outbox viewer.
*
* @return IColorProvider or null
*/
public IColorProvider getColorProvider();
示例14: getColorProvider
import org.eclipse.jface.viewers.IColorProvider; //導入依賴的package包/類
/**
* ColorProvider used by the inbox viewer.
*
* @return IColorProvider or null
*/
public IColorProvider getColorProvider();