Eclipse standard warning/error overlay icons
        Posted  
        
            by pulzar
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by pulzar
        
        
        
        Published on 2010-03-13T04:51:44Z
        Indexed on 
            2010/03/13
            4:55 UTC
        
        
        Read the original article
        Hit count: 561
        
I'm writing an Eclipse plug-in... In my custom label decorator, I want to overlay a warning icon, and I'd like to use the standard one used by eclipse (the little yellow triangle). How can I get an image descriptor of this icon?
I tried using workbench.getSharedImages().getImageDescriptor(ISharedImages .IMG_DEC_FIELD_WARNING), since that ID seems to match what I'm looking for, but the shared images collection doesn't actually have that image in it (so I just get a null returned).
Is there some other shared image collection that I should be looking at?
© Stack Overflow or respective owner