private IPaletteItem [ ] getPaletteItems ( String category ) { List < IPaletteItem > list = items . get ( category ) ; if ( list == null ) { return new IPaletteItem [ 0 ] ; } return list . toArray ( new IPaletteItem [ list . size ( ) ] ) ; }
Returns PaletteItems which are contained by the specified category .