CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/ui/internal/style/ColoredTypeTreeLabelProvider.java [275:299]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                if (columnIndex == 0 || columnIndex == 4) {
                    return (Color) ((TypeNode) element).getBgColor();
                } else if (columnIndex == 2) {
                    if ( obj instanceof TypeStyle ) {
                        TypeStyle typeColor = (TypeStyle) obj;
                        if (typeColor != null) {
                            return (Color) typeColor.fgColor;
                        }
                    }
                }
            }
        }
        return null;
    }

    public Color getForeground(Object element, int columnIndex) {
        if ( element instanceof TypeNode ) {
            if (columnIndex == 0) {
                Object obj = ((TypeNode) element).getObject();
                if ( obj instanceof TypeStyle ) {
                    return ((TypeStyle) obj).fgColor;
                }            
            }
        }
        return null;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/ui/internal/style/DefaultColorTreeLabelProvider.java [282:325]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                if (columnIndex == 0 || columnIndex == 4) {
                    return (Color) ((TypeNode) element).getBgColor();
                } else if (columnIndex == 2) {
                    if ( obj instanceof TypeStyle ) {
                        TypeStyle typeColor = (TypeStyle) obj;
                        if (typeColor != null) {
                            return (Color) typeColor.fgColor;
                        }
//                    } else if ( obj instanceof ColoredType ) {
//                        return ((ColoredType) obj).getColor().fgColor;
                    }
                }
                
//            } else if ( (obj instanceof TypeColor) || (obj instanceof ColoredType) ) {
//                if (columnIndex == 0 || columnIndex == 4) {
//                    return (Color) ((TypeNode) element).getBgColor();
//                } else if (columnIndex == 2) {
//                    if ( obj instanceof TypeColor ) {
//                        TypeColor typeColor = (TypeColor) obj;
//                        if (typeColor != null) {
//                            return (Color) typeColor.fgColor;
//                        }
//                    } else if ( obj instanceof ColoredType ) {
//                        // Some types may NOT have color
//                        if (((ColoredType) obj).getColor() != null) {
//                            return ((ColoredType) obj).getColor().fgColor;
//                        }
//                    }
//                }
            }
        }
        return null;
    }

    public Color getForeground(Object element, int columnIndex) {
        if ( element instanceof TypeNode ) {
            if (columnIndex == 0) {
                Object obj = ((TypeNode) element).getObject();
                if ( obj instanceof TypeStyle ) {
                    return ((TypeStyle) obj).fgColor;
                }            
            }
        }
        return null;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



