public List < ImageIcon > getCustomIcons ( ) { List < ImageIcon > iconList = new ArrayList < ImageIcon > ( ) ; if ( justSpidered ) { iconList . add ( new ImageIcon ( Constant . class . getResource ( "/resource/icon/10/spider.png" ) ) ) ; } synchronized ( this . icons ) { if ( ! this . icons . isEmpty ( ) ) { for ( Iterator < String > it = icons . iterator ( ) ; it . hasNext ( ) ; ) { String icon = it . next ( ) ; URL url = Constant . class . getResource ( icon ) ; if ( url == null ) { url = ExtensionFactory . getAddOnLoader ( ) . getResource ( icon ) ; if ( url == null ) { log . warn ( "Failed to find icon: " + icon ) ; it . remove ( ) ; } } if ( url != null ) { iconList . add ( new ImageIcon ( url ) ) ; } } } } return iconList ; }
Gets any custom icons that have been set for this node