public static IconDescriptor createIcon ( IconType iconType , Store store ) { IconDescriptor iconDescriptor = store . create ( IconDescriptor . class ) ; iconDescriptor . setLang ( iconType . getLang ( ) ) ; PathType largeIcon = iconType . getLargeIcon ( ) ; if ( largeIcon != null ) { iconDescriptor . setLargeIcon ( largeIcon . getValue ( ) ) ; } PathType smallIcon = iconType . getSmallIcon ( ) ; if ( smallIcon != null ) { iconDescriptor . setSmallIcon ( smallIcon . getValue ( ) ) ; } return iconDescriptor ; }
Create an icon descriptor .