public Component getListCellRendererComponent( final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus ) { super.getListCellRendererComponent( list, value, index, isSelected, cellHasFocus ); if ( value instanceof FunctionCategory ) { final FunctionCategory cat = (FunctionCategory) value; setText( cat.getDisplayName( Locale.getDefault() ) ); setToolTipText( cat.getDescription( Locale.getDefault() ) ); } else { setText( Messages.getInstance().getString( "FunctionCategoryCellRenderer.All" ) ); setToolTipText( null ); } return this; } }