CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/ui/internal/style/ColoredTypeTreeLabelProvider.java [42:89]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
		super();
		_viewer = viewer;
		_showFullName = showFullName;
	}
        	
    /*************************************************************************/
        
    /**
     * 
     * @return true if Full Name View
     */
    public boolean switchNameView (boolean refresh) 
    {
        Trace.trace();
        _showFullName = !_showFullName;
        if (refresh) {
            _viewer.refresh();
        }
        return _showFullName;
    }
    
    /*************************************************************************/
    
    
	/*
	 * @see ILabelProvider#getImage(Object)
	 */
	public Image getImage(Object element) 
    {
        String imageFile = null;
        
		ImageDescriptor descriptor = null;
	    if (element instanceof TypeNode
            || element instanceof TypeDescription) {
            
            // Object object = ((TypeNode)element).getObject();
	        if ( element instanceof TypeDescription
                || ((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_TYPE ) {
                TypeDescription t;
                if (element instanceof TypeDescription) {
                    t = (TypeDescription) element;
                } else {
                    t = (TypeDescription)((TypeNode)element).getObject();
                }
                imageFile = "type.gif";
                descriptor = ImageLoader.getInstance().getImageDescriptor(imageFile);
                
	        } else if ( ((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_LABEL_FEATURES ) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/ui/internal/style/DefaultColorTreeLabelProvider.java [44:101]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
		super();
		_viewer = viewer;
		_showFullName = showFullName;
	}
    
    /*************************************************************************/
    
//    public void showFullName (boolean showFullName, boolean refresh) 
//    {
//        if ( _showFullName != showFullName ) {
//            _showFullName = showFullName;
//            if (refresh) {
//                _viewer.refresh();
//            }
//        }
//    }
    
    /**
     * 
     * @return true if Full Name View
     */
    public boolean switchNameView (boolean refresh) 
    {
        Trace.trace();
        _showFullName = !_showFullName;
        if (refresh) {
            _viewer.refresh();
        }
        return _showFullName;
    }
    
    /*************************************************************************/
    
    
	/*
	 * @see ILabelProvider#getImage(Object)
	 */
	public Image getImage(Object element) 
    {
        String imageFile = null;
        
		ImageDescriptor descriptor = null;
	    if (element instanceof TypeNode
            || element instanceof TypeDescription) {
            
            // Object object = ((TypeNode)element).getObject();
	        if ( element instanceof TypeDescription
                || ((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_TYPE ) {
                TypeDescription t;
                if (element instanceof TypeDescription) {
                    t = (TypeDescription) element;
                } else {
                    t = (TypeDescription)((TypeNode)element).getObject();
                }
                imageFile = "type.gif";
                descriptor = ImageLoader.getInstance().getImageDescriptor(imageFile);
                
	        } else if ( ((TypeNode)element).getObjectType() == IItemTypeConstants.ITEM_TYPE_LABEL_FEATURES ) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



