FileDocCategorySizeDatePackage
AttributeDescriptorLabelProvider.javaAPI DocAndroid 1.5 API2557Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.descriptors

AttributeDescriptorLabelProvider

public class AttributeDescriptorLabelProvider extends Object implements org.eclipse.jface.viewers.ILabelProvider
Label provider for {@link UiAbstractTextAttributeNode}.

Fields Summary
private static final AttributeDescriptorLabelProvider
sThis
Constructors Summary
Methods Summary
public voidaddListener(org.eclipse.jface.viewers.ILabelProviderListener listener)

        // TODO Auto-generated method stub

    
public voiddispose()

        // TODO Auto-generated method stub

    
public org.eclipse.swt.graphics.ImagegetImage(java.lang.Object element)

        if (element instanceof UiAbstractTextAttributeNode) {
            UiAbstractTextAttributeNode node = (UiAbstractTextAttributeNode) element;
            if (node.getDescriptor().isDeprecated()) {
                String v = node.getCurrentValue();
                if (v != null && v.length() > 0) {
                    IconFactory factory = IconFactory.getInstance();
                    return factory.getIcon("warning"); //$NON-NLS-1$
                }                
            }
        }

        return null;
    
public static org.eclipse.jface.viewers.ILabelProvidergetProvider()

    
        
        return sThis;
    
public java.lang.StringgetText(java.lang.Object element)

        if (element instanceof UiAbstractTextAttributeNode) {
            return ((UiAbstractTextAttributeNode)element).getCurrentValue();
        }

        return null;
    
public booleanisLabelProperty(java.lang.Object element, java.lang.String property)

        // TODO Auto-generated method stub
        return false;
    
public voidremoveListener(org.eclipse.jface.viewers.ILabelProviderListener listener)

        // TODO Auto-generated method stub