Java 类org.eclipse.jface.viewers.IColorProvider 实例源码

项目:gemoc-studio-modeldebugging    文件:DecoratingColumLabelProvider.java   
/**
 * 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;
    }
}
项目:ModelDebugging    文件:DecoratingColumLabelProvider.java   
/**
 * 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;
    }
}
项目:code    文件:ArchitecturalDecoratingLabelProvider.java   
public Color getForeground(Object element) {
    ILabelDecorator colorProvider = getLabelDecorator();
    if (colorProvider instanceof IColorProvider) {
        return ((IColorProvider) colorProvider).getForeground(element);
    }

    // Default
    return null;
}
项目:code    文件:ArchitecturalDecoratingLabelProvider.java   
public Color getBackground(Object element) {
    ILabelDecorator colorProvider = getLabelDecorator();
    if (colorProvider instanceof IColorProvider) {
        return ((IColorProvider) colorProvider).getBackground(element);
    }

    // Default
    return null;
}
项目:code    文件:ArchitecturalDecoratingLabelProvider.java   
public Color getForeground(Object element) {
    ILabelDecorator colorProvider = getLabelDecorator();
    if (colorProvider instanceof IColorProvider) {
        return ((IColorProvider) colorProvider).getForeground(element);
    }

    // Default
    return null;
}
项目:code    文件:ArchitecturalDecoratingLabelProvider.java   
public Color getBackground(Object element) {
    ILabelDecorator colorProvider = getLabelDecorator();
    if (colorProvider instanceof IColorProvider) {
        return ((IColorProvider) colorProvider).getBackground(element);
    }

    // Default
    return null;
}
项目:code    文件:ArchitecturalDecoratingLabelProvider.java   
public Color getForeground(Object element) {
    ILabelDecorator colorProvider = getLabelDecorator();
    if (colorProvider instanceof IColorProvider) {
        return ((IColorProvider) colorProvider).getForeground(element);
    }

    // Default
    return null;
}
项目:code    文件:ArchitecturalDecoratingLabelProvider.java   
public Color getBackground(Object element) {
    ILabelDecorator colorProvider = getLabelDecorator();
    if (colorProvider instanceof IColorProvider) {
        return ((IColorProvider) colorProvider).getBackground(element);
    }

    // Default
    return null;
}
项目:tlaplus    文件:FilteredItemsSelectionDialog.java   
private Color getBackground(Object element) {
    if (element instanceof ItemsListSeparator) {
        return null;
    }
    if (provider instanceof IColorProvider) {
        return ((IColorProvider) provider).getBackground(element);
    }
    return null;
}
项目:tlaplus    文件:FilteredItemsSelectionDialog.java   
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;
}
项目:bts    文件:DelegatingLabelProviderWithTooltip.java   
@Override
public Color getForeground(Object element) {
    if (wrappedLabelProvider instanceof IColorProvider) {
        return ((IColorProvider) wrappedLabelProvider).getForeground(element);
    }
    return null;
}
项目:bts    文件:DelegatingLabelProviderWithTooltip.java   
@Override
public Color getBackground(Object element) {
    if (wrappedLabelProvider instanceof IColorProvider) {
        return ((IColorProvider) wrappedLabelProvider).getBackground(element);
    }
    return null;
}
项目:APICloud-Studio    文件:ThemedDelegatingLabelProvider.java   
public Color getForeground(Object element)
{
    if (disabled || !invasiveThemesEnabled())
    {
        if (wrapped instanceof IColorProvider)
        {
            return ((IColorProvider) wrapped).getForeground(element);
        }
        return null;
    }
    return getThemeManager().getCurrentTheme().getForegroundColor();
}
项目:elexis-3-base    文件:FileUiProvider.java   
@Override
public IColorProvider getColorProvider(){
    return fileLabelProvider;
}
项目:elexis-3-base    文件:LabResultUiProvider.java   
@Override
public IColorProvider getColorProvider(){
    return labelProvider;
}
项目:elexis-3-base    文件:EMediplanUiProvider.java   
@Override
public IColorProvider getColorProvider(){
    // TODO Auto-generated method stub
    return null;
}
项目:elexis-3-base    文件:DefaultOutboxElementLabelProvider.java   
@Override
public IColorProvider getColorProvider(){
    return null;
}
项目:elexis-3-base    文件:InboxElementUiProvider.java   
@Override
public IColorProvider getColorProvider(){
    // TODO Auto-generated method stub
    return null;
}
项目:elexis-3-base    文件:IOutboxElementUiProvider.java   
/**
 * ColorProvider used by the outbox viewer.
 * 
 * @return IColorProvider or null
 */
public IColorProvider getColorProvider();
项目:elexis-3-base    文件:IInboxElementUiProvider.java   
/**
 * ColorProvider used by the inbox viewer.
 * 
 * @return IColorProvider or null
 */
public IColorProvider getColorProvider();