public void removeItem(YeomanGeneratorType type,String name,GeneratedItemView itemView){
  List<String> existingNames=namesByTypes.get(type);
  if (existingNames != null && existingNames.contains(name)) {
    existingNames.remove(name);
    if (existingNames.isEmpty()) {
      namesByTypes.remove(type);
      FoldingPanel previous=widgetByTypes.remove(type);
      view.removeFoldingPanel(previous);
    }
 else {
      FoldingPanel selectedPanel=widgetByTypes.get(type);
      selectedPanel.remove(itemView);
    }
  }
  updateGenerateButton();
}

public void removeItem ( YeomanGeneratorType type , String name , GeneratedItemView itemView ) { List < String > existingNames = namesByTypes . get ( type ) ; if ( existingNames != null && existingNames . contains ( name ) ) { existingNames . remove ( name ) ; if ( existingNames . isEmpty ( ) ) { namesByTypes . remove ( type ) ; FoldingPanel previous = widgetByTypes . remove ( type ) ; view . removeFoldingPanel ( previous ) ; } else { FoldingPanel selectedPanel = widgetByTypes . get ( type ) ; selectedPanel . remove ( itemView ) ; } } updateGenerateButton ( ) ; }
remove an item from the data
