public StateInteractive extent_to_whole_connected_sets(){
  Set<BrdItem> new_selected_items=new TreeSet<BrdItem>();
  for (  BrdItem curr_item : items_list) {
    if (curr_item instanceof BrdConnectable) {
      new_selected_items.addAll(curr_item.get_connected_set(-1));
    }
  }
  if (new_selected_items.isEmpty())   return return_state;
  items_list=new_selected_items;
  actlog_start_scope(LogfileScope.EXTEND_TO_WHOLE_CONNECTED_SETS);
  filter();
  i_brd.repaint();
  return this;
}

public StateInteractive extent_to_whole_connected_sets ( ) { Set < BrdItem > new_selected_items = new TreeSet < BrdItem > ( ) ; for ( BrdItem curr_item : items_list ) { if ( curr_item instanceof BrdConnectable ) { new_selected_items . addAll ( curr_item . get_connected_set ( - 1 ) ) ; } } if ( new_selected_items . isEmpty ( ) ) return return_state ; items_list = new_selected_items ; actlog_start_scope ( LogfileScope . EXTEND_TO_WHOLE_CONNECTED_SETS ) ; filter ( ) ; i_brd . repaint ( ) ; return this ; }
select also all items belonging to any connected set of the current selected items .
