CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/ui/internal/style/ColoredTypeTreeLabelProvider.java [222:246]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Color getForeground (Object element) {
        if ( element instanceof TypeNode ) {
            int color = -1;
        	if (((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_LABEL_FEATURES) {
                color = SWT.COLOR_BLUE;
        		
        	} else if (((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_TYPE)  {
//                if (((TypeNode)element).getObject() != null) {
//            		int status = ((TypeDescription)((TypeNode)element).getObject()).getModificationAttribut();
//            		if (((TypeDescription)((TypeNode)element).getObject()).getValidityAttribut() != ItemAttributes.STATUS_VALID) { 
//                        color = SWT.COLOR_RED;
//                    } else if (status == ItemAttributes.MODIFICATION_UPDATE) {
//    	        		System.out.println("getForeground: COLOR_GREEN");
//                        color = SWT.COLOR_GREEN;
//    	        	}
//                }
            } else if (((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_FEATURE)  {
                
        	}
            if (color != -1) {
                return _viewer.getControl().getDisplay().getSystemColor(color);
            }
        }
        return null;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/ui/internal/style/DefaultColorTreeLabelProvider.java [246:261]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Color getForeground (Object element) {
        if ( element instanceof TypeNode ) {
            int color = -1;
        	if (((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_LABEL_FEATURES) {
                color = SWT.COLOR_BLUE;
        		
        	} else if (((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_TYPE)  {

            } else if (((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_FEATURE)  {
        	}
            if (color != -1) {
                return _viewer.getControl().getDisplay().getSystemColor(color);
            }
        }
        return null;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/ui/internal/type/TypesTreeLabelProvider.java [206:229]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Color getForeground (Object element) {
        if ( element instanceof TypeNode ) {
            int color = -1;
        	if (((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_LABEL_FEATURES) {
                color = SWT.COLOR_BLUE;
        		
        	} else if (((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_TYPE)  {
//                if (((TypeNode)element).getObject() != null) {
//            		int status = ((TypeDescription)((TypeNode)element).getObject()).getModificationAttribut();
//            		if (((TypeDescription)((TypeNode)element).getObject()).getValidityAttribut() != ItemAttributes.STATUS_VALID) { 
//                        color = SWT.COLOR_RED;
//                    } else if (status == ItemAttributes.MODIFICATION_UPDATE) {
//    	        		System.out.println("getForeground: COLOR_GREEN");
//                        color = SWT.COLOR_GREEN;
//    	        	}
//                }
            } else if (((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_FEATURE)  {
        	}
            if (color != -1) {
                return _viewer.getControl().getDisplay().getSystemColor(color);
            }
        }
        return null;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



