private void updateAlias(JLabel label,Alias alias){
  if (alias != null) {
    label.setText(alias.getName());
    String icon=alias.getIconName();
    if (icon != null) {
      label.setIcon(mSettingsManager.getImageIcon(icon,SettingsManager.DEFAULT_ICON_SIZE));
    }
 else {
      label.setIcon(null);
    }
  }
 else {
    label.setText("");
    label.setIcon(null);
  }
}

private void updateAlias ( JLabel label , Alias alias ) { if ( alias != null ) { label . setText ( alias . getName ( ) ) ; String icon = alias . getIconName ( ) ; if ( icon != null ) { label . setIcon ( mSettingsManager . getImageIcon ( icon , SettingsManager . DEFAULT_ICON_SIZE ) ) ; } else { label . setIcon ( null ) ; } } else { label . setText ( "" ) ; label . setIcon ( null ) ; } }
updates the alias label with text and icon from the alias . note : this does not occur on the swing event thread - - wrap any calls to this method with an event thread call .
